I integrate my android app with facebook. I want to fetch (then display) list of my facebook group on my app. Maybe anyone have a tutorial to do that?
What you are looking for is the following end point
/me/groups
Which displays the list of the groups the User has subscribed to. But to get the data from the end point you will be required to obtain the user_groups permission to read the User's group.
You can see the documentation at:
https://developers.facebook.com/docs/reference/api/group/
Related
I am trying to write code to access info about all the groups a user has joined. It's supposed to work with (me?fields=groups) in the graph api explorer.
It appears I can only access the groups I created.
Has there been any change in the API?
or can someone point out a solution
Thanks
/me/groups (or /me?fields=groups) returns a list of groups you manage only, with the user_managed_groups permission. You cannot get a list of ALL groups the user is a member of anymore, this was changed a long time ago.
Hey i'm trying to get all pins for a specific user from pinterest API in android app
but as i see for now there is no public Api after searching i found this Post which contain an end point for fetching all pins of specific user http://widgets.pinterest.com/v3/pidgets/users/eecolor/pins/
and this works perfectly but it doesn't contain the pin creating date.
Also i have checked the official website which contain a sample response for pins list and the data contain creation date
so how i can do this,is there any extra field should i added to the previous endpoint
Thanks
You can obtain scraping from here:
https://www.pinterest.com/pin/[put-pin-id-here]/
Ex. https://www.pinterest.com/pin/1234565787899/
See the page code:
meta itemprop="datePublished" content="2015-05-19T10:31:33"/
I found that there is no way to get pinterest pins from specific page unless you are the the admin of the page, but in this case you can use this url for using rest Api
"https://api.pinterest.com/v1/me/pins/?access_token=token&fields=id%2Curl%2Cnote%2Ccreated_at%2Cimage&limit=10
and the access token could be generated from here
https://developers.pinterest.com/tools/access_token
Regards
There are some similar questions but I believe this is a problem on its own.
I'm using Facebook SDK for Android to get my friends photos listed on the device, and when I use Graph Explorer I actually get the data I wanted but inside my app I get only ONE result.
I first tried to use this FQL
SELECT pid FROM photo WHERE owner = me();
But then I found that table photo is not indexable (this link), so I tried with table album
I even tried with my own photos using this FQL
SELECT pid FROM photo WHERE owner = me() AND aid IN (SELECT aid FROM album WHERE owner = me())
I have all necessary permissions (user_photos,friends_photos,user_friends)
Also I have tried to add some limit, like 2 or 25 to check if that could be the problem.
But still nothing! :(
Any of you Facebook gurus have any idea what is my problem?
Thanks in advance
Answer // edited
Oh well... It seems that 5 hours of waiting is not enough for Facebook servers to propagate the changes and that by adding those permissions I wrote above I managed to get what I needed.
So answer would be (just for test phase, for the real thing you need to wait for Facebook servers to propagate):
Go to Graph API explorer
Open FQL tab (or if you are using Graph API stay where you are)
Click the drop down menu in the right top corner where it says Applications
Choose your app (it should be Graph API explorer by default)
Click Get Access Token button
You will see that you are missing some privileges indeed
Select what you need
Approve it
Test your app again in you development environment
Voila
I am working on an android app that interacts with facebook places.I have the users place list(checkins,status) and the users's friends list.I also have the place list for each of the user's friends.I would like if its possible to query facebook for the common places that the user has with each of his friends.
Does anyone know if it is possible?
I just found this:
https://developers.facebook.com/docs/reference/api/checkin/
With Checkin you can query the where a user and a place interact.
I found this problem before (one year ago), but I was crawling posts and comments. These posts and comments have the place parameter (see this here), so you can take the last one associated to the user to be the current location or so.
I want to display my facebook online friends and offline friends suppurate.But i don't know how to display.But I am getting all my facebook friends into list in my application.
Any one please help me.....How to display online and offline friends suppurate.
First - use the fb api. get the friends.
Second - show the list in beautiful Ui component or what ever.
So I understand that you have done the first, right?
If so, then what stops you to make some container and push back dynamically to it labels for example. After this you can try some more beautiful solution how I sad..
try explain more what you've done... Be more specific, please. :)
EDIT 1
Here you are: https://developers.facebook.com/docs/reference/fql/user
Use that:
online_presence
The user's Facebook Chat status. Returns a string, one of active,
idle, offline, or error (when Facebook can't determine presence
information on the server side). The query does not return the user's
Facebook Chat status when that information is restricted for privacy
reasons
EDIT 2
May be you need a loop all your friends and for each of them execute the query
SELECT online_presence FROM user WHERE username = the_friend_from_list
This is a pseudocode but I'm sure you can handle it. :)