Questions tagged [facebook-php-sdk]

The Facebook PHP-SDK provides Facebook Platform support to your PHP - based web apps.

This library helps you add Facebook Login and Graph API support (targeted posting, ad management, photo upload etc.) to your Website.

Documentation facebook-php-sdk

3679 questions
8
votes
2 answers

Getting long-lived access token with setExtendedAccessToken() returns short lived token

I try to get extended long-lived access token with $facebook->setExtendedAccessToken(); $access_token = $facebook->getAccessToken(); After looking SDK I found that setExtendedAccessToken() function is setting long-lived access token in protected…
user1633755
  • 107
  • 1
  • 8
8
votes
2 answers

Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26: Network is unreachable from Facebook PHP SDK

I am using Facebook Current PHP SDK. My app was running ok. BUt from today any api call returning Failed to connect to 2a03:2880:10:1f03:face:b00c:0:26: Network is unreachable. Here is my code try { $fbme = $facebook->api('/me'); } catch…
Zakir Hyder
  • 627
  • 1
  • 7
  • 17
7
votes
2 answers

video post on timeline not playing inline

I have a problem when posting video through my app on users with TimeLine profile. the post appears very small and when clicked the video opens on a new tab instead of playing inside facebook. Here are some details : I'm building an application…
7
votes
2 answers

Changing facebook application name

I have written a simple facebook application using PHP SDK. Application works well but application name (main title which is tagged this on this image : http://xmages.net/storage/10/1/0/e/2/upload/fd7d8c6f.jpg ) looks as "php-sdk". How can I change…
anon
7
votes
0 answers

If posting to a group, requires app being installed in the group, and either publish_to_groups permission with user token

I am trying to post to my group by a business app type facebook but getting below error: Fatal error: Uncaught Facebook\Exceptions\FacebookAuthorizationException: (#200) If posting to a group, requires app being installed in the group, and…
7
votes
1 answer

How to provide screencasts to Facebook for app review

I have a Facebook app to publish content to my Facebook page automatically from a website. This app needs manage_pages & publish_pages permissions. Facebook asks apps to be reviewed in order to keep working. When I try to create a new submission for…
7
votes
1 answer

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

Hi i'm new to facebook sharing. I want to make a user log in using his uid and then store these for further uses The primary purpose is to share links in the user's wall next time onwards without showing the facebook window i want to post in to his…
Harish
  • 2,311
  • 4
  • 23
  • 28
7
votes
2 answers

How to retrieve all my active Facebook ads?

I'm creating a dashboard for myself that helps me keep track of the Facebook ads I'm running. What I've not been able to figure out is: How can I retrieve an array of ad IDs for all ads that are active or could soon be active after no further action…
7
votes
2 answers

Facebook Graph API : Publishing likes through the API is no longer available

Facebook Graph API While try to post likes, I am getting below error. { "error": { "message": "(#3) Publishing likes through the API is no longer available", "type": "OAuthException", "code": 3, "fbtrace_id": "C9I3NJ2I9Gt" …
Niko Jojo
  • 1,204
  • 2
  • 14
  • 31
7
votes
2 answers

How to add newlines or carriage returns to description on facebook graph API

It sounds like a pretty simple question but I can find the answer no where. I have a post from a textarea. and I want to use the current facebook php library to do the following... $description = $_POST['textarea_description']; //magic…
ftrotter
  • 3,066
  • 2
  • 38
  • 52
7
votes
1 answer

Get friends who interacted on timeline - Facebook

I want to get list of friends who likes my post on my timeline since 1st Jan, 16 and the story's privacy set to FRIENDS. So I tried this Graph API but I'm getting list of profiles which included friends and some non-friends profile too ! I want to…
Sourav
  • 17,065
  • 35
  • 101
  • 159
7
votes
2 answers

"Given URL is not whitelisted in Client OAuth Settings" on Facebook login at a test host

I am using Facebook PHP SDK to implement login with facebook. And I want to test it in local first. I created a test app and I tried many things but still does not work for me. In my local I have an apache virtual host configured so that I can…
Adam Tong
  • 571
  • 1
  • 4
  • 16
7
votes
3 answers

Unexpected App Id using Facebook PHP SDK API

This is my login script:
vinoli
  • 457
  • 1
  • 6
  • 20
7
votes
3 answers

How to login in website using facebook id

I have made a website on which a user has to log in using a username and password. I have seen these in so many website, we can connect through facebook account. And I want to add the same to my web site. How is it possible,using php sdk or the…
BIBEKRBARAL
  • 4,455
  • 9
  • 31
  • 30
7
votes
3 answers

Post message with picture to facebook page/feed using graph api

I'm trying post an a message with one image via facebook graph API, and I can't. In new documentation https://developers.facebook.com/docs/graph-api/reference/v2.1/user/feed there is no field for an image. If I try to use a field…