Making a facebook status post using a URL/GET request - facebook

I am trying to make a windows phone app using cocos2d-x WP8 port.
I wanted to post the final score of the player on Facebook if he presses the Facebook share button in the app.
So I tried the method explained here:
Post to facebook status with a URL / GET request? (or post)
The link for twitter is working fine, but for facebook, the text that I want to share does not appear in the text area of post. Any help will be appreciated, thanks.

The Facebook sharer to this date is a resurrected version of the sharer from 2011. The only possible parameter to set is the u parameter. Fix the metadata of the URL being referenced to modify title data (i.e. you must own the URL to modify for use with sharer.php, otherwise you will be forced to use the title the owner of the URL used).

Related

Unity facebook SDK, can not post picture with FB.Feed

In my Unity IOS game, I am unsuccessfully trying to use FB.Feed to share a screenshot on the user's wall.
Facebook documentation uses FB.Api to publish the screenshot, but this method does not display a share dialog, it simply uploads the pic to Facebook.
Answers I have found so far:
Upload the picture using FB.Api, and then parse the FBResult for the picture URL, and feed that to FB.Feed Link to answer.
This method triggers an error, since it is not possible to use a Facebook URL as source for a picture.
Save the picture locally and prepend "File://" to the picture path. Link to question. This does not seem to work either, and the Facebook documentation does not seem to have any information on URL formatting.
My question:
Is this the correct (and only) way to display a share dialog when publishing a picture? Or am I looking in the wrong direction?
FB.Feed only allows you to post link to images. It doesn't upload the images to Facebook. Therefore, these images need to hosted somewhere on the net and not locally.
The best way to make it work is either upload the images to FB (with privacy property set to EVERYONE) using FB.API, and then share the link to that picture via FB.Feed. If you don't want to create duplicate stories, i.e. one from posting the picture and another from FB.Feed, make sure that you set no_story to true.

Why do app posts to Facebook not show as pasted via my app, despite OK OpenGraph response?

We have an app on Facebook called TouchActive
We provide ways for user to post content to Facebook, either from web (via AddThis) or native Android/iOS app.
When we post from say Android we identify the app and the post appears correctly, showing "... via TouchActive" all fine.
When we post from web, we post a URL that Facebook queries, and we provide an OpenGraph response from our server with all the og: meta tags, including the facebook app_id.
The content appears correctly (it's parsing the OG response OK), but it doesn't show as posted via our app, and the posts don't appear in our Insight statistics for the app.
We are assuming this can be done.
Anyone know what we could be doing wrong in our open graph response that causes this to not work?
I have tried the Facebook debug tool https://developers.facebook.com/tools/debug and it shows the correctly parsed OG response and no errors, only a warning about og:url.
Is og:url recommended or a MUST for this to work?
Andrew: I am also using the same meta tag for my site and it works as expected and the post is attributed to my site. I guess u should specify the og:url meta-tag once and then check. As this url is used on the attributed app's anchor link on fb wall.
If still it has the same issue then we can dig it more to come to solution.
A user manually sharing a link to or liking a web page which has opengraph meta tags (including an App ID) is not the same as posting the content from the app - are you definitely posting the links using the app?
You must post via the API to get the post attributed to your app, regardless of which app is specified on the page's meta tag (which is done primarily for insights and administration purposes)

facebook like widget not accepting my facebook url

trying to get the facebook like box (the plugin on the facebook developers page) on my website, so i can put the wall posts on the website, but when i enter the facebook url, all i get is Could not retrieve id for the specified page. Please verify correct href was passed in.
Are you using php? You may need to use url_encode('http://mysite.com/etc') on your own own link since I believe it is passed as a variable in the FB like button (could be wrong).

How to open a Facebook post to wall from webpage?

I am writing a website and want a user to be able to click post to Facebook and have it open a window already filled out with a custom post. I do not want to have to authenticate them with my site or anything like that just send them to a Facebook url with the post already filled in.
Twitter has something like this that I am using. For instance click this http://twitter.com/home?status=This%20is%20a%20custom%20post
Is there a way to do this same thing for Facebook? If so does anyone know the URL?
Thanks
I found the solution I was looking for. To post to a Facebook wall without actually managing tokens you must make a call to the url below with the parameters specified below.
"http://www.facebook.com/dialog/feed?app_id=YOU_APP_ID&link=A_LINK_HERE&picture=PATH_TO_A_PICTURE&name=SOME_NAME&caption=SOME_CAPTION&description=SOME_DESCRIPTION&message=MESSAGE_TO_POST_ON_WALL&redirect_uri=REDIRECT_URL_AFTER_POST"
This will redirect back to the url that was specified in redirect parameter after the post. It will have the parameter post_id with the id of the new post or no params if they did not post. You can find documentation here http://developers.facebook.com/docs/reference/dialogs/feed/.
The Like and Send buttons provide this functionality:
http://developers.facebook.com/docs/reference/plugins/like/
You include meta tags on your page and the Like / Send button pick this up for sharing to a user's wall.
You can't prefill story text, it's against FB policies. Twitter is cool with that, but on Facebook it's a no-no.
See: http://developers.facebook.com/docs/guides/policy/examples_and_explanations/stream_stories/
Scroll down a bit to 'Platform Policy IV.2'
You can put suggestions of what to say on the screen, but you can't prefill the comment box.

Make Facebook _not_ automatically select a thumbnail from a page?

I'm using the Graph API to post to a user's wall via a 3rd party website. The update contains a link to said 3rd party website. (In functionality, it's kind of like just putting a Facebook "Like" button on the 3rd party page, except I want some more finely-tuned control over how the caption looks on Facebook.)
I am not specifying a picture for the post. When the post is created, Facebook's bot automatically connects to the 3rd party page specified in the link and selects an image to use as a thumbnail. Sadly, the image is almost never relavant, and I would just rather Facebook not look for a thumbnail at all.
I can probably put some Open Graph tags on the page to help out Facebook's bot, but I don't see a way to use Open Graph to specify that you'd like to have no image, and that Facebook shouldn't choose one automatically.
Any way to do this?
Although Facebook seems to ignore the picture set to an empty string in the Graph API call, setting an Open Graph tag for the picture which is an empty string seems to have done the trick.
When you publishing the the stream, include the "picture" property in the request and just set it to an empty string. This will ensure you dont have a url on the post. My other suggestion would be to put the Open Graph tags on the pages you are sharing. This will ensure that both you and others who share the url will have the correct data and images show on Facebook. http://developers.facebook.com/docs/opengraph