I am using graph API. I have to fetch feed(i.e.. posts on the particular page) and display on viewController.
Is there any tutorial which I can follow for my assignment?
Sorry, don't know about tutorials but I recently had to access a page's posts as well.
If you are an admin to the page and it's accessible to anyone then you can just setup a app and then do:
https://graph.facebook.com/pageId/feed?&access_token=App Id|App Secret
I did this with .Net and a web client request and deserialized the result into objects but I hope that helps.
checkout this link
https://developers.facebook.com/docs/mobile/ios/build/
checkout this example
https://github.com/facebook/facebook-ios-sdk/tree/master/sample/Hackbook
may be it is use full to you
Related
I have read the documentation, https://developers.facebook.com/docs/instagram-api/webhooks but I am confused as to how the mentions API with the webhooks works and was hoping someone could throw some light my way.
I have successfully setup the hook, and my facebook app is configured to send data here.
I gather I Have to tell the the app that the facebook page linked with an instagram account wishes to subscribe by calling this:
POST graph.facebook.com/{facebook page id}/subscribed_apps which should then hit my hook everytime any linked page gets a mention in a media item or a comment?
This is the bit I am confused on and could really use some help!
Also, can I have multiple pages subscribe to the hook?
Thanks in advance.
Can you figure this out or no
i looked everywhere with no result
I am managing an organisation's page on Facebook and want to like all posts made by the page from my personal account.(Let us say the posts from now on and not from the time the page was created) I have no idea how to proceed as I haven't explored facebook's developers tool. Can someone help a bit?
Well, its a very broad question. I dont know what language are you using and are you aware of graph api or not. So first of all go through the basics-
Using the Graph API
Access token - all API calls must be signed with an access token
Login - very important part i nfacebook integration, yet I think its not relevant to this question
Graph API Explorer- a tool provided by facebook to test the API calls. (first register on the developers site if you have not yet)
Now coming to the solution to the question-
First of all you'll be needing the post IDs of the page. To query for all the posts-
\GET https://graph.facebook.com/<Page-ID>/posts?fields=id
Example to fetch all the public posts by "Aam Aadmi Party".
Then, for each of that post id, you have to make a POST call to /likes, this will return true on success and the post will be liked.
\POST https://graph.facebook.com/<Post-ID>/likes
Example to like a post from the "Aam Aadmi Party" page.
Hope it helps. Good luck!
I have a Facebook app, and want to post user activity.
How do I do it in an web app - what are the methods and API? (not for web site, as facebook documentation in https://developers.facebook.com/docs/opengraph/tutorial/ is for web sites).
Do i have to create a new html page for each user activity I want to post? Wouldn't it create millions of pages, or am I missing something here?
Thanks!
I have found Yan has given a nice detail about this thought. Can you give a try, I am succeed on his suggestion.
Here is the link
http://ian.tresman.co.uk/how-add-facebook-page-activity-post-rss-feed-web-page.htm
Marshal
http://coronabd.blogspot.com
Is there any way I can create comments related to my object, without using the comments plugin? The Facebook Graph API seems like the correct way, but can I link to an object on my web site without actually "posting" that object as a post on facebook? Amazingly, I can't find anyone on the Net with this problem, so perhaps I'm simply doing it wrong.
I'm trying to post to:
https://graph.facebook.com/comments/?ids=http://iesgroup.ca/myappbeta/Item/1799633&message=test&access_token....
I do have the publish_stream permission in the access_token. All I get back is "An unknown error has occurred".
Essentially, I have set up my own web site using the Open Graph protocols. Each item that I have has its own URL with the proper OG tags. For each item, I am able to fetch the comments that facebook has associated with it. But I am unable to actually attach new comments to that object, without using the facebook comment plugin. I'm using my own look-and-feel commenting system, so I am not interested in using facebook's module. I'm using the JavaScript API to fetch the existing comments.
Note, that if I use the Open Graph protocol, users are able to post actions to their timeline, but not actually associate new comments to the object.
Thoughts? Thanks.
The only way I know of is to use the Facebook Graph API and have a Facebook website application and use server-side code to directly re-post comments from your website to the facebook page on an existing Facebook object. It is much more in-depth than the simple Open Graph implementation. But if you don't want to use Facebook's comment module, I don't see any other option. This is a link to the area of making comments, http://developers.facebook.com/docs/reference/api/Comment/ , but this is only useful after you have everything else set up. This is a huge undertaking to get your website to this point, but you will have full control over every aspect of how you interact with Facebook, cause you write your own code. Here is a link to the top level of the FB Graph API so you can read more about it. http://developers.facebook.com/docs/reference/api/
Nick - www.meltedjoystick.com
I've created an app which enables business to post links to their Facebook wall as the business (have proper business auth tokens, etc.).
However the links posted via the app do not have a share link, only comments and like. When a link is posted through the Facebook UI to the business wall it does contain a share link along with comments and like.
What am I missing to enable the link posted via my app to have a share link?
I am currently issuing a POST request to the following URL to create the posts:
https://graph.facebook.com/[profileId]/feed?message=[message]&link=[link]&...
this is a reported bug and have not been fixed yet. have a look (http://developers.facebook.com/bugs/307556529334653)
I think you will need publish_stream permission for that and publish what they write. IMO Facebooks makes difference between feed and stream. Just my thoughts :)
that's the standard procedure when you have a user post via app. I don't think there's a way to have users post as themselves, as far as links are concerned. What you can do is have them post a status update and that one will be seen as posted by the user (no app information).
There's no other procedure I am aware of that can do that. I hope this helps