Facebook Graph Post link problems - facebook

I'm trying to post a link to the wall of a facebook Page through the graph api.
http://developers.facebook.com/docs/reference/api/post/
Unfortunately the api is not very well documentet so i have some problems:
How do i get the "Share"-action to appear under a link i've posted?
How can i disable thumbnails for the link?
How can i make the caption linked
All those works when posting manually but i havn't found a way to do it through the api. I know it's possible though since i've seen other apps do it.

Related

Facebook status post via app doesn't show in Newsfeed

I am using facebook graph api to post a status to Facebook via my app.
The problem is I can't see the status post in NewsFeed, but in the
Wall of the user.
I just used me/feed accordingly to GraphAPI documentation.
When I searched this issue, I saw quite similar thing http://developers.facebook.com/bugs/302089206530370.
This one is quite similar one too .Facebook graph post on feed is not visible in newsfeed, but that api is deprecated a long time ago and not the same API that I am using.
This one is exactly the same like my issue. http://developers.facebook.com/bugs/353691264693202 but sadly, facebook doesn't provide info in detail. can't find the duplicate issue.
I asked for scope=user_photos,read_stream,publish_stream,offline_access,user_status,friends_status grant access for my app.
Is there anything that I missing out?
Edited: I confirmed my setting of whether I have set to hide my app post in my newsfeed too. But I didn't set it.
I think that is the facebook bug. already found the similar one reported http://developers.facebook.com/bugs/372776119424090?browse=search_4fc3354fb769c0726100997
For the time being, I can only wait for Facebook to fix that bug.
Thanks.

Adding facebook comments to my website object

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

Post Facebook Comment with Link Preview via Facebook API

Facebook recently added link previews to user comments.
http://www.insidefacebook.com/2011/07/21/facebook-comment-previews/
My question: is there a way to display this link preview using any of the Facebook APIs and publish_stream permission? (Graph, rest, etc)?
I've tried posting a URL in the body of a comment using the Graph API /comments endpoint, but no link preview is shown.
The feature might still be too immature to allow this, but I'm wondering if any one has tried it and got it to work in some way.
Sure. Just post a comment (for example) with youtube video and it will transfer to embed one

Programmatically posting Facebook comments

My application has obtained publish_stream permissions for a Facebook user.
I'd like to allow the user to post comments for a target URL directly from my mobile application, rather than opening up an embedded browser that then shows the Comment Box plugin. That is, the user doesn't necessarily want to post the link to their feed -- rather they want to participate in any Facebook comment discussion that surrounds that URL.
Naturally, I can read the comments for any URL via the Graph API (eg: a techcrunch article) but I do not know how, or if I can add comments to an arbitrary URL programmatically.
Would love to hear any other suggestions or workarounds as well. My hope is to piggy back on Facebook comments to allow my users to have a conversation surrounding URLs of interest to them. If at all possible, I'd also prefer to use Facebook, though I can see using Disqus or similar services would be another possibility.
Use graph api, demo comments here
make POST to
http://graph.facebook.com/comments/?ids=http://techcrunch.com/2011/07/22/big-surprise-the-ipad-trumps-android-tablets-at-the-office/
with field message and value "yourmessage"
I genuine Facebook API bug.
Cannot comment via Graph API on Comments Plugin (Probably try Legacy API)
Graph API

Facebook Graph API (Tell people about my app)

Is it possible using the Graph API to tell the my friends about the an app?
I looked through the documentation and I can't find any, maybe I missed it. I can see I can post onmy wall, but nothing regarding sharing a link/app. Thanks
Sharing a link is a part of the Graph API. You can add a lot of variables to a Post request. See the official documentation here:
http://developers.facebook.com/docs/reference/api/post/
As an example, I used the message, link, name, caption, description, and icon properties with the graph API to create this dialog (using the Facebook iOS SDK).