How to retrieve Posts by Others on a public Facebook page in JSON format?
For example, Stackoverflow Facebook page. How to get JSON data that contain posts from Stackoverflow facebook fans on the page? So, I can list them on my web, android application or etc..
Any help would be greatly appreciated.
you should be able to retrieve posts with me/feed and a valid access token. Should that not work, try with pageid/feed and a valid access token. That will return all posts (status updates included). You can filter them in many ways. This is the method with graph API. Otherwise there's FQL Query. I hope this helps.
Related
I'm trying to fetch the Instagram user profile picture. I found an API to achieve this task
https://www.instagram.com/{username}/?__a=1
but the above API only works when I'm logged into my account, else it wouldn't return the JSON response
Is there any workaround for this? Lots of websites are doing this, so I'm sure there is some way to do it
any help would be appreciated
Your Question is a Duplicate.
I was able to try both urls and worked well.
https://www.instagram.com/USERNAME/?__a=1
https://i.instagram.com/api/v1/users/USER_ID/info/
Tried first one on Chrome and second one on Insomnia (both not logged on Instagram).
disclosure. I am not a programmer
For the past year or so I have been utilizing the Facebook Graph API to pull Facebook page "likes" into a spreadsheet so that I can track how many likes my page gets vs other pages of similar business. It is kind of rudimentary but it became cumbersome to have to visit every page each week to get the total page "Likes" so this my solution.
I was utilizing this formula...
=importjson(concatenate("https://graph.facebook.com/",APINames!$B11,"?access_token=",$B$1),"/likes","noHeaders")
I reference this post...
Get Facebook page like count for OpenGraph v2.10
Which states to use the a different URL to retrieve page likes.
https://graph.facebook.com/v2.10/<page-id>?access_token=<access-token>&fields=fan_count
When inputting the new URL in my formula function I still receive a reference error.
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1),"&fields=fan_count","noHeaders")
If anyone could point me in the right direction I would be very grateful. I have spent over an hour scouring the web for information as well as reading the new changelog for v2.10. I fear going back to the manual process!!
I'm not 100% sure, but you should try this:
=importjson(concatenate("https://graph.facebook.com/v2.10/",APINames!$B3,"?access_token=",$B$1,"&fields=fan_count"),"/fan_count", "noHeaders")
I think the brackets are on the wrong place, because you need to concatenate the url, the page-id (in APINames), the query parameter access_token, the access token form cell B1 and the fields query_parameter.
At least with this change I get a fan_count. Interesting use case, BTW.
So it seems that Facebook has deprecated the public JSON and XML feeds for profiles (https://www.facebook.com/feeds/page.php?format=json&id=[id]).
I have a client's website that was grabbing a simple facebook feed for display on the homepage. They own the facebook page they want to feed from.
I understand I'm supposed to use the Graph API. But it doesn't seem possible without authentication. Is there any way to pull this data without generating a temporary token each time? Asking the user for facebook access every time they open this separate website seems like a really bad user experience.
This seems to be a recent deprecation on the part of facebook (Did Facebook recently disable accessing public page feeds via uri?). Any help is greatly appreciated. Thanks!
For display public informations without authentifcation in Json, create a app to facebook graph.
You just need :
Facebookappid
Facebookappsecret
Facebookpageid
And use this url :
https://graph.facebook.com/Facebookpageid/feed?access_token=Facebookappid|Facebookappsecret
and Tada, you can see the public feed in Json.
Hope help someone.
Thanks #WizKid, that helped! More specifically it looks like I needed to find a permanent page access token. This page had my answer: facebook: permanent Page Access Token?
I'm trying to use the Graph API to get the feed of multiple public groups then that of multiple users.
When it comes to the feed of groups, it works flawlessly, all I have to do is fetch the following :
graph.facebook.com/$group_id/feed?limit={feedLimit}&access_token={access_token}
My access token being comprised of: AppID|AppSecret
However when it comes to fetching the feed of a user (Whose confidentiality settings are set to public of course) all I get is an empty answer. I would've thought it impossible to get such info and stopped there but then I stumbled upon ApiGee. All I have to do then is authenticate as a user (facebook-Authenticated-user) and it works.
Here's an image of it: http://s9.postimg.org/ynq5tar9r/feed.jpg
My question is : "How is that possible? I've read all I could in the docs and I still can't understand how it works. And how can I remedy that?"
Thank you.
The token you are using is an App token (AppId|AppSecret). With the app token you can't really get users personal feeds. With ApiGee you authenticated to get a user token, which can be used to fetch posts on the authenticated user's feed.
Read more about Facebook's access tokens
I'm using the Twitter streaming API and have come across these messages:
{"delete":{"status":{"id":1234,"id_str":"1234","user_id":3,"user_id_str":"3"}}}
Are there any other delete type messages other than status??
I'm finding it difficult to find any documentation on Twitter's dev sites. I know there's the scrub_geo message, but it doesn't start with the delete at the beginning. they look like:
{"scrub_geo":{
"user_id":14090452,
"user_id_str":"14090452",
"up_to_status_id":23260136625,
"up_to_status_id_str":"23260136625"
}
}
I'm needing to know all the other delete type messages both that start with delete and those that don't. I'm wanting to be compliant with the Twitter API terms. Any help would be greatly appreciated. Thanks in advance!
I'm not sure if this helps. But...
Search for the word "destroy" in the api (https://dev.twitter.com/docs/api/1.1). Post requests can be sent to delete the following, so maybe the streaming API will push them back.
Status
Direct messages
Friendships
Blocks
Favourites
List members
List subscribers
Lists