To set Facebook Profile Picture, I know that Facebook PHP SDK has no direct method to do so (see reference answer).
As a workaround, I forward to the user to the Photo URL with &makeprofile=1
parameter, such as:
header('Location: https://www.facebook.com/photo.php?fbid=1015159XXXXXXXX&set=a.YYYYYYYYYYY.ZZZZZZZ.TTTTTTTT&type=1&makeprofile=1');
exit;
This works okay in desktop browser. But in mobile, the feature &makeprofile=1
is ignored, and just redirect to the photo page. User has to manually click "Make Profile Picture" button below the photo. Is there any workaround in mobile browser so that the user does not require to click "Make Profile Picture" button in mobile Facebook view?
Or, is there any Graph API I can use ?