If you would like to change your facebook profile picture with php or jquery. You can use below code for the same.
Please download facebook.js from Facebook SDK.
-
<script src="//code.jquery.com/jquery-latest.min.js"></script>
-
<script src="//connect.facebook.net/en_US/all.js"></script>
-
<script src="<?= BASE_URL ?>/js/facebook.js"></script>
-
// Additional JS functions here
-
window.fbAsyncInit = function () {
-
FB.init({
-
appId: fbAppId, // App ID
-
status: true, // check login status
-
cookie: true, // enable cookies to allow the
-
// server to access the session
-
xfbml: true, // parse page for xfbml or html5
-
// social plugins like login button below
-
version: 'v2.0', // Specify an API version
-
});
-
// Put additional init code here
View full Blog about How to change Facebook profile picture at FindNerd.
|