Hi i need to retreive all my links for an app. I have try with "me/feed?limit=9999&access_token=" but this string not get all my links. Only the lasts.
Instead of Feed endpoint try the Link endpoint:
http://developers.facebook.com/docs/reference/api/link/
That should get all the links posted by the authenticated user
Related
We are developing a mobile app that if share a FB post link to it, like you can share on WhatsApp, we want to be able to read the title or summary or start of that FB post, and redirect our App to the corresponding area.
So it works on Instagram using: https://developers.facebook.com/docs/instagram-basic-display-api/
Where give the post ID and it pulls in the caption text etc.
So works for IG and some other socials for anonymous users.
But for FB links, it mostly shows us the login page, in most cases (sometimes it worked on localhost maybe if logged-in - but could not recreate on server environments).
So cannot pull in any info about the post have shared using a direct FB share URL or maybe via some method on FB Graph Api, we could not see an easy way.
Does anyone know a generic method that anyone sharing a post to an app, or even just being able to see the title or summary of a FB post using the default share link, so we can direct our App to the right page.
So essentially using a FB post share link, we want to be able to read some basic data of that Post, whether logged in or not,
and happy to do this via Graph API or FB App or any other ways.
Again in summary - need to Get some user defined parameters or text or ideally hashtags from the post just using the share link of any FB Post/Page.
Any ideas or help appreciated.
I'm using Impactworks graph handler to get my facebook posts successfully.
http://blog.impact-works.com/2011/07/01/importing-user-info-using-facebook-graph-api-asp-net-part-1/
But how do I get another users posts from their wall? Do they just need to add my app to their facebook?
Do they just need to add my app to their facebook?
Yes. But, you can get the public posts simply using:
/USER_ID/posts
/PAGE_ID/posts
, even if the user is not using your app.
is there a code or what is the code used on this app to be posted on a Facebook account once log in?
once you finish the steps you can post the created app post the image on your Facebook page
sample site: http://www.dragulator.com/
does it has to do with the API key from the Facebook account?
I hope i am clear about what i want to achieve
Sincerely,
Jim
To upload a photo on user's Facebook wall you need to use their API, called Graph. There are quiet a few examples online, so I won't go into details, but the flow is:
Authenticate user to the app (https://developers.facebook.com/docs/authentication/) and get the access token.
Initiate a post request with to create a post (http://developers.facebook.com/docs/reference/api/post/).
I want to list the YouTube video links in my iPhone app that I have shared in my facebook account.
How can I do this ?
Please if you have knowledge about this, please share with us.
Thanks in advance.
Look at FBConnect FBConnect and Graph API or REST API to see if this is possible.
Do the following instruction;
make a request for metadata.
After getting the response for metadata, just parse links dictionary from connections. You will get one url with access_token and signature.
Make one more request with the url.
eg:[fbGraph doGraphGetWithUrlString:[[[resultFacebook valueForKey:#"metadata"] valueForKey:#"connections"] valueForKey:#"links"]]
4 . Now you will get list of YouTube url from Facebook that already is in your Facebook Wall.
I'm working on a plugin for a Wordpress blog that posts a link to every article published to a Facebook Page associated with the blog.
I'm using the Graph API and I have authenticated myself, for the time being, via OAuth.
I can successfully post a message to the page using curl via a POST request to https://graph.facebook.com/mypageid/feed with e.g. message = "This is a test" and it published the message.
The problem is that the message is "from" my user account. I'm an admin on this test page, and when I go to Facebook and post an update from the web, the link comes "from" my page. That's how I'd like this to be set up, because it looks silly if all the shared links are coming from a user account.
Is there a way to authenticate myself as a page? Or is there an alternate way to POST to a page feed that doesn't end up being interpreted as a comment from a user?
Thanks for any thoughts or suggestions.
To post as the Page, you need to get an access token for the page by getting an access token for an admin of the Page with the "manage_pages" and "publish_stream" permissions. Then, using that access token, hit https://graph.facebook.com/me/accounts?access_token=THE_ACCESS_TOKEN. You'll get a JSON output of all the Pages that user admins and in there you'll see an access token for each Page. If you use one of those access tokens to POST your message, you will be doing so as the Page. The process is outlined in the documentation here (sorry, it's kind of buried).
Ah, it's a bug.
you need to use enable_profile_selector
http://developers.facebook.com/docs/reference/javascript/FB.login
Please have a look at the comments by "Nam Thai" on this thread: http://www.takwing.idv.hk/tech/fb_dev/faq/graphapi/graph_27.html. This solved the problem for me.