Getting the locations of facebook likes [closed] - facebook

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am curious; is it at all possible to somehow get data about the locations of likers (those who have a public location anyway) on facebook pages?
I'm merely curious for statistical reasons whether A or B is more popular in country Z, etc....
I assume its not possible without a bit of coding but any points as to what would be the way to look into creating something to trawl a likes list?

There's the page_fans_country metric of the Page's insights edge, e.g.
/cocacola/insights/page_fans_country?period=lifetime
to get the lifetime likes by country for the CocaCola page. You can use this with an App Access Token like this:
GET https://graph.facebook.com/cocacola/insights/page_fans_country?period=lifetime&access_token={app_access_token}
where {app_access_token} is the App Access Token you want to use.
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/insights#reading

Related

Can I get the number of likes from a facebook page without being the admin? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
My question is that. I'm trying to get the likes of a facebook page with facebook apigraph explorer but I can't get the count. I have look for other answers but they don't work to me so I'm thinking that it is because I'm not administrator, could be ?
I think that it is a simple thing so it have to be possible, as I can see the likes of a page entering in it on facebook.
I know that with /namepage/likes I can get all the likes but I need the count of all of them. For example:
humorcabron/likes?fields=likes.limit(1).summary(true)
but I don't get the count of all of them.
Plese could you tell me How can i get the number of likes and what I'm getting?
Solved the previous versions of the api (before 2.5) works like I said at first
humorcabron?fields=likes.summary(true). At newer versions what I was looking for is humorcabron?fields=fan_count

How to write Facebook App that continuously update profile picture [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to know if its possible to create Facebook app that continuously update users profile picture. I can't see anything in the docs. Do you know if this is possible and if so any docs on implementing it?
Thanks in advance.
It is not possible for the User Profile. There is no way to update the profile picture with the API directly.
There are many Stackoverflow threads about this already, this one is very old but the answer is still correct: Facebook API/PHP - Is it possible to change a user's profile image via FB Graph API?

facebook real time subscriptions api [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How do you subscribe to the real time API to user photos changes in order to get the likes and comments of user uploaded photos when they are liked and commented? Are there any necessary app settings or specific graph api calls that need to be made?
Regards
Have a look at the docs at
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.4
Keep in mind that you can only receive user updates if the user has given your application the appropriate permissions.

Facebook App ID - Multiple Site URL's [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a product consisting of hundreds of separate websites - each of which has a unique URL. Unfortunately it is not feasible for me to create a separate Facebook App ID for each website. Is it possible to configure one Facebook App ID that can be shared/used across all websites?
I know it's possible with subdomains but haven't had any luck finding much information about my situation.
Thanks!
There isn't. The only way it so redirect to a login page that is the same for all.

Is there a way to get the ID of a message thread in Facebook? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
If I have the URL of a facebook thread from a user's messages, is there a way to get the id of that thread? I get how to construct a url given an id, but not the other way around.
The URL can have two formats:
https://www.facebook.com/messages/123456789
or
https://www.facebook.com/messages/<username>
I need to be able to handle both cases.
Thanks.
SELECT thread_fbid
FROM unified_thread
WHERE single_recipient = <USER ID>
Doc: https://developers.facebook.com/docs/reference/fql/unified_thread
This gives exactly what you want. The problem is:
(#298) You must be a developer of the application
Please read unified_thread still not open for public?
So, one actual workaround would be to loop on all the threads from graph.facebook.com/me/inbox?fields=to as long as you didn't find one which:
has only 2 participants (because some threads are group conversations and you don't want them),
and contains the participant who is the person represented by a user ID/username.
This has to be done manually, using your favorite language.