I am unable to retrieve Status using FQL for Some Users...for Most of User it is working fine.. but for Some Users not ...
FYI Message is Public and Visible to all friends.
I unable to find what is the problem...Below is The Query..
SELECT status_id, message FROM status WHERE uid in (XXXXX,XXXXX)
User Must Need to Allow My Status Update under Privacy Settings>> How You Connect>> How people bring your info to apps they use
Related
This should be an easy one. All I want it the user's profile url.
I've tried the following FQL:
SELECT profile_url FROM standard_user_info WHERE uid = me()
but get the Request Failed error. I'm using the Graph API Explorer / FQL Query and have the latest Access Token.
Basically I'm looking for the FQL equivalent to this Graph API call:
https://graph.facebook.com/me?fields=link
Thanks for the help
If you read the documentation properly, you'll notice that-
standard_user_info requires the APP_ACCESS_TOKEN, instead of USER_ACCESS_TOKEN. You can get the App Access Token from the Access Token Tool, for the testing.
You can get the information about the authorized app users only.
So, you can test it like this-
SELECT profile_url FROM standard_user_info WHERE uid = USER_ID
Note: Don't use me() (since you are using the app access token now which didn't recognize me()), instead use you ID)
I want to retrieve the current user's notifications from the past 8 hours. I'm using the Graph API Explorer on FQL mode before I put this into my app. On permissions, I have user_about_me and manage_notifications. The request i'm searching for is this:
SELECT notification_id FROM notification WHERE recipient_id={0}
But it returns:
{
"error": "Request failed"
}
What am I doing wrong?
The error Request failed
generally occurs when the your request in not correct.
If you read the documentation properly, this API is used to fetch -
The current user's notifications
So, only valid recipient_id could be the current user's id or me(); not his friends or any other user.
If you have tried the current user's id to the recipient_id, that means the id you've provided with {0} is not correct (some syntactical error).
So, instead you could simply write recipient_id = me()
I'm writting application for facebook using canvas using facebook php api.
My problem: is it possible (and if yes - how) to get from api list of users i (or user who gave me permision using AccessToken) invited to an event?
When i list event_members table using FQL i dont get inviter nor inviter_type informations...
SELECT inviter,inviter_type,rsvp_status,uid FROM event_member WHERE eid = someeventid
That query ends with those fields empty - and from what i read thats expected behaviour becouse its private date - who invited who.
I am trying to get facebook status and replies for those status, so what I didn't find anything other than Status messages: [a link] https://graph.facebook.com/367501354973 (A status message from Bret). Looks like this require userid but how can I get user id's of my friends. If I get my friends can I get the status of friends of my friends. I have been searching every possible place to find an answer on getting facebook status along with the replies but so for no luck. It would be great if there is a webcrawler for something like this.
Check this
http://developers.facebook.com/docs/reference/api/status/
You can also use below facebook Graph API Explorer tool to test
http://developers.facebook.com/tools/explorer/?method=GET&path=580490479
You can get your friend's ID by below
https://graph.facebook.com/me/friends?access_token=
You can get updated of Your friends by
https://graph.facebook.com/580490479/feed
and for Posting check below
http://developers.facebook.com/docs/reference/api/post/
--- Samir
In my application I'm trying out to list only the friends who are all single.
I tried different methods and it didn't return proper values...
I tried the graph API but could list only all the friends irrespective of their relationship status.
i tried $facebook->api("/$user/friends?relationship_status='single'");
Also i tried to use FQL and fetch things up but the relationship status always return up as 'null' for even the user who have approved the applications and gave permission to access their relationship_status..
the fql query i tried is
SELECT
uid,name, relationship_status, current_location
FROM user
WHERE
uid IN (SELECT uid2 FROM friend WHERE uid1 = 2343434434234)
How can i get this done?
The problem is that you're only asking for that user's relationship status. You need to also ask for the friends_relationships permission. Once you do that, your query will work fine.