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

Composer install error – requires ext_curl when it’s actually enabled

This is caused because you don’t have a library php5-curl installed in your system, On Ubuntu its just simple run the line code below, in your case on Xamp take a look in Xamp documentation sudo apt-get install php5-curl For anyone who uses php7.0 sudo apt-get install php7.0-curl For those who uses php7.1 sudo apt-get … 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

Publishing To User’s Wall Without Being Online/Logged-in – Facebook Sharing Using Graph API

I suggest you start learning how Facebook Graph API works first. Facebook will NEVER share the user password with you! If you just need to give the user the possibility to share link, then just use the like plugin. You may also find more interesting social plugins to use in your website. If you use … Read more

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

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