Questions tagged [facebook-rest-api]

57 questions
76
votes
10 answers

Is there a way to check if Facebook access token is still valid?

My site utilizes lifetime access tokens (offline_access). However, if the user changes his/her password, the access token gets reset. Is there a method to check if the current access token is valid before making calls to the Graph API? Thanks for…
axsuul
  • 7,370
  • 9
  • 54
  • 71
6
votes
2 answers

Create and Configure Facebook Apps via API

I'm looking for a solution to create and configure Facebook Apps via the Facebook APIs. It doens't matter if its Graph API / FQL or REST API but I couldn't find any way to do this.
6
votes
1 answer

FaceBook API to fetch user's Activity Log

I need to fetch user's activity log. i tried /{user-id}/activities but its not returning the activity log of an user. I am aware that from "fql" we can fetch the few activities, but FB recently announced they are deprecating the fql's. I have used…
user3820288
  • 225
  • 1
  • 5
  • 13
5
votes
1 answer

How to Avoid Posting a Duplicate when Publishing to Facebook?

With the Graph API, I publish a story by POSTing to the /me/feed connection. I get back a success or an error result from Facebook. So far so good. Once in a while, the API takes a long time and the connection times out. In that case, I don't know…
Waleed Abdulla
  • 1,873
  • 1
  • 14
  • 20
5
votes
1 answer

How to get Facebook Sandbox Ad Account Data from my Application?

I have added sandbox ad account in my app from FB Dev->Marketing API->Tools->Sandbox Ad Account Management . I have added 2 pages from my personal account and created campaigns and ads in there. Now, I want this sandbox ad account data to test my…
I. Afrin
  • 165
  • 2
  • 11
4
votes
2 answers

Errno::ECONNRESET: Connection reset by peer

I am using Rails application and MiniFB Gem to call Facebook Api. I got following exception Errno::ECONNRESET: Connection reset by peer And following is the backtrace:- Backtrace : /usr/lib/ruby/1.8/net/http.rb:586:in…
4
votes
3 answers

Facebook Login Not Returning User access_token

This is my first post, so please let me know if I'm not abiding by the community rules. Now to the problem! I've been trying to setup the Facebook login process for an app and I've gotten as far as adding a GUI element (the built-in Facebook login…
3
votes
1 answer

Find Like Count for a URL | REST API and FQL returns wrong vales

I am trying to find the number of likes a particular URL has across Facebook. Normally this could be found by using the REST API or through a FQL query. Now, these figures seem to be reporting inaccurate figures. How can an accurate total for likes,…
3
votes
2 answers

Facebook Media Attachment - fallback URL for 'music' type?

I'm using Facebook's Legacy REST API to publish MP3 media attachments to users' streams (as the new Graph API does not yet support audio). This renders the audio in Facebook's own media player as expected. However, because the player is a Flash…
chrisfrancis27
  • 4,516
  • 1
  • 24
  • 32
3
votes
1 answer

Posting to Facebook without a link

I'm working on an API to allow posting to Facebook, using Graph API over REST, sending HTTP post requests to https://graph.facebook.com/me/feed (after succesful OAuth2 auth). I can specify message and link and it posts the link, (but with message…
Peter Boughton
  • 110,170
  • 32
  • 120
  • 176
2
votes
1 answer

Anyone know the full signature for Facebook's PRIVATE auth.login API method

I am working on a white listed app that is allowed to called the private auth.login api. Because the api is a private one the standard Facebook docs at developers.facebook.com don't help. There was a draft security bulletin a few months back that…
Pat Long - Munkii Yebee
  • 3,592
  • 2
  • 34
  • 68
2
votes
1 answer

Publish post with picture and link on event's wall

Is there a way to publish a post with a picture and a link on an event's wall? Currently I can publish only statuses (messages). On the user's wall there is no such issue. I've tried the new Graph API as well as the old REST API ('stream.publish'…
2
votes
2 answers

how to send facebook Notification or message via its api?

please let me know how can i Send facebook Notification or message via its API through a facebook app?
Inam Jameel
  • 237
  • 1
  • 7
  • 13
2
votes
2 answers

Post on Facebook wall without showing dialog on android

I am trying to post a feed on Facebook wall without opening a dialogue box using Facebook Android SDK. I tried to find a way but couldn't find. Can anyone tell em how to post to wall in background without opening a dialogue. I tried using the below…
glo
  • 1,408
  • 3
  • 25
  • 54
1
vote
1 answer

How do I receive API Throttling Warnings?

We need to fetch mutual friend data for each one of our new users. (We're currently doing that through the REST API.) In load testing for an upcoming traffic surge, we ran into API throttling, which breaks our production site. Oops! In the Insights…
William Pietri
  • 3,573
  • 5
  • 26
  • 25
1
2 3 4