Error Invalid Scopes: offline_access, publish_stream, when I try to connect with Facebook API

The permissions offline_access and publish_stream are deprecated, thus cannot be requested anymore. publish_stream can be replaced by publish_actions, offline_access is gone. See https://developers.facebook.com/docs/facebook-login/permissions/v2.4#reference https://developers.facebook.com/docs/apps/changelog

facebook connect- $user_id = $facebook->getUser(); always returning 0 [duplicate]

To get rid of this issue you need to do the following Change $login_url = $facebook->getLoginUrl(array( ‘scope’ => ’email,user_location,user_photos,publish_actions,basic_info’, ‘redirect_uri’ => ‘http://localhost/dist/’ )); to $login_url = $facebook->getLoginUrl(array( ‘scope’ => ’email,user_location,user_photos,publish_actions,basic_info’, ‘redirect_uri’ => ‘http://localhost/dist/index.php’ )); Leave domain name blank in the following setting. Dont give localhost.com App Domains : localhost.com Then Valid OAuth redirect URIs :http://localhost/dist/ … Read more

Post to a facebook page without “manage_pages” permission using php

Request a new User Access Token by using the Graph API Explorer (with manage_pages permission, eventually in conjunction with publish_pages). Be sure to use one of your own apps, because you want to exchange the generated (short-lived) access token to a long-lived one: Copy the newly generated User Access Token from the according form field … Read more

How do I can post a multiple photos via Facebook API

You can now publish multiple images in a single post to your feed or page: For each photo in the story, upload it unpublished using the {user-id}/photos endpoint with the argument published=false. You’ll get an ID for each photo you upload like this: { “id”: “10153677042736789” } Publish a multi-photo story using the {user-id}/feed endpoint … Read more

How to extend access token validity since offline_access deprecation

Edit (August 14th 2012): A week ago the official Facebook PHP SDK was updated. The function name was changed to setExtendedAccessToken, and it was decided we actually needed to destroy the session afterwards, to remove the risk of having two active sessions. Also, the function no longer actually returns the token, but instead stores it … Read more

Is it possible to get friend’s emails using facebook api?

From the Facebook docs: “Likewise, to protect the privacy of users who have not explicitly authorized your application, your application will only be able to access the basic profile information about a user’s friends, like their names and profile pictures. If your application needs to access other data about a user’s friends to enable social … Read more