Is there any way to track a certain URL (let's say http://domain.com/example) on Facebook and Twitter? Do any of the respective APIs enable users to access the number of public shares, likes or retweets from a given public publication/tweet, without forcing users to authenticate?
On Facebook you can do it by usin Graph API:
https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/
To retrieve comments, you should use comments connection:
https://graph.facebook.com/comments?ids=http://www.imdb.com/title/tt0117500/
And so on.
Related
hi all i want to get facebook groups using graph facebook api but i want to filter only open share public groups (means posts don't need admin approval) i looked at https://developers.facebook.com/docs/groups-api/ and tried to read the whole docs but found nothing.
i don't need a specific langiage i just need to know if there is an endpoint which can do this in facebook graph api or any other solution
graph facebook endpoint to get this kind of groups
I want to know if there is a way to get users public Facebook data (eg. User’s page likes, name, surname, e-mail (if public)...) Without asking a user The permissions, only public data.
I’ve just check The graph API but all of informations requires users permissions.
It's not possible via Facebook Graph API. The web-crawl method could achieve it, but that's against fair practices.
Public data of users without there explicit authorization: not possible at all.
Public data of Pages: Only possible by applying for Page Public Content Access first.
Scraping/Crawling is not a valid way, because Facebook does not allow it.
There are a lot of question about similar topic, but none of them is actual and gives an answer.
I try to get public data from random facebook user via the facebook graph api.
First of all here is the documentation about getting user informations, and the endpoint looks like this:
GET /v2.9/{user-id} HTTP/1.1
Now I try this in the facebook graph explorer. But now I need the {user-id}
-Where or how do I get this user-id when I have the url to the users profile?
Lets say the user-id is given - to get the user-id I used findmyfbid.com
But the only response I get is the public name of the user and not more.
-So is it possible to get public user profile data, withouth having the users permission for your app? And if not, where is this written in the documentation?
I am using /me/feed and /me/home to get my feed and my homepage feed respectively.
But the /me/home only shows updates from my friends. I am following many people but not friends with them. My facebook homepage shows all the updates including my friends and the people I am following.
How to get the news feed exactly like the one appears in the fb website?
As #Fabio said, the Graph API does not support it as of now (and I don't think it'll do that in the future). You can only obtain yours and your friends' feeds using the Graph API.
In order to obtain the feeds from a specific person who's not in your friend list, you need a valid User Access Token from that user with a read_stream permission.
There is however a way to read the public feeds of user status updates and page status updates as they are posted to Facebook. This can be done by using the Public Feed API. This will include all feeds that have their privacy set to ‘public’ are included in the stream. Also, you cannot apply to use the API at this time as its access is limited. Its page says:
Access to the Public Feed API is restricted to a limited set of media
publishers and usage requires prior approval by Facebook. You cannot
apply to use the API at this time.
But I think it's just a fancy way of saying that this API is not free and you'll be charged few dollars (which you can find out by getting in touch with someone at Facebook) for using this service.
I want to send something like feed seen to direct user only (I know the mechanism how to do it), but from something like page. As I've understood only public feeds are accepted for pages. Is there any analog object, that could be associated with my company and that could be an author for private feeds, seen only for direct users?
No, as indicated at https://www.facebook.com/help/352402648173466?in_context, even if you enable settings:
What you can do is narrow the audience by conditions(age, demographic...etc), post feed specify audience by user id is impossible:
My first thougth was send private message as the solution, unfortunately, as indicated at https://www.facebook.com/help/273376269375028/, what you can do is only
send messages to people who've contacted you on your Page
You are able to retrieve a page's feed by querying the following graph endpoint:
https://graph.facebook.com/{group_id}/feed
Please see the following reference: https://developers.facebook.com/docs/reference/api/page/#feed
Posting to a feed requires you to have the access_token for that page, which can be retrieved by calling /me/accounts using the access_token of a user with admin privileges to that page.