share button under the post callback - facebook

we are posting the videos on the wall of user and the pages he has. we shares a link with og:tags the content gets render and flash works fine in page timeline. now we need to do is, we need to change some behavior if the video is shared from the page timeline the share button under the post along with the link and comment link, we need to add an extra parameter to the sharing URL if user shares the video ,
and some call back so we can change in our database that the video link is shared
i had Google it but not founded any way around yet.
to see the behavior:
Open: https://www.facebook.com/SmashingSatellites/posts/761234327249785 or page url( https://www.facebook.com/SmashingSatellites)
Hit share under the thumbnail.
This URL http://www.littlecast.com/free_videos/fcb2df18-a597-43df-8c13-8f2f76e47b6b/wall_post?edit_id=0.5146727468697403&from_page_id=188020614571162&publisher=Smashing+Satellites will get share on your timeline
what we need: need to add "shared=timeline" parameter to the above link.
screen short : https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-prn1/t39.2087-6/851593_689592121098955_1268323226_n.jpg

Related

Facebook Sharing plugin doesn’t detect the specified post URL

I use Facebook share button to share my article (Title, description and image) on Facebook using Open Graph Meta and other default Meta
And my articles are echoed in post.php page like (mywebsite.com/post.php?id=post_id) which contents differ through post_id.
Well, while sharing a post on fb, facing some problems.
1: fb share doesn't detect the image belonging to the article/current post that is shared. (Thought the image URL in my Open Graph Meta is correct) and after sharing it on Facebook the link doesn’t redirect to the exact URL (mywebsite.com/post.php?id=post_id).
2: the fb share button is in my post.php page which shares different posts but sharing is counted same for all posts.
The FB share button has got an attribute (data-href="url-to-share") which my one is (data-href="<?php echo'post.php?id=post_id';?>").
Anyone know what and where is wrong with my code/URL addressing?
If your meta tags shows correct data then must be fb issue. I faced similar problem before.
Try debug your url in the FB debugger( https://developers.facebook.com/tools/debug/og/object/ ). It helps.
Fb haven't grab your updated data because they have their own time/interval to grab new data from the website(if im not mistaken). Using the debugger u'll see how the share will look like and show missing details if any.

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.

How do I allow a user to post an item directly to their facebook wall?

I'm creating a site that has images and video behind a login. I'd like the user to be able to share an asset but the can't share the url since you have to be logged in to see it. I know I can create an app that has the user connect their facebook to my site that will in turn allow the to post the asset directly to their page saving it to their photo and video albums.
Problems is, I can't quite figure out how to do it. I have the Facebook Dev documentation pulled up: Post
However, I can't figure out how to add a "post to facebook" button that would allow the user to connect and share the asset without requiring a URL to the item itself.
Does anyone know of a tutorial or a great resource to get me started?
If you can get your image directory to be accessible outside of your secure area you can use the Facebook sharer url. You will only have to share the url of the created image not a url to any actual page.
This is the link your share button would go to:
https://www.facebook.com/sharer/sharer.php?u=http://zef.me/wp-content/uploads/2008/02/funny-cat.jpg
Example for building link or button:
<a href="https://www.facebook.com/sharer/sharer.php?u={url to image}" target="_blank">
Share on Facebook
</a>

Link a posted photo with an app page

I'm designing a photo-oriented Facebook app that would let users tell stories in the app-specific way and advertise such stories by posting a single, preferably large, "cover" photo. Photo posting is done by the app and people that would like to see the story need an easy and obvious way of being redirected to the corresponding app-generated page. So hence is the question.
Is it possible for a Facebook app to post a maximally large (column-wide) photo on the user's behalf, so that when others (non-users included) click on the photo, it takes them to a specific page that is related to the app instead of zooming into the photo by default? If not, what would be the best workaround?
To get the maximum large photo on news feed, you should look into user generated photos, which requires two additional parameters you add to your open graph action to indicate that the user-generated photo should have maximum photo display on news feed and ticker.
Example OG POST:
https://graph.facebook.com/me/nyccookbook:cook?
recipe=http://www.yourdomain.com/pizza.html&
image[0][url]=http://www.yourdomain.com/images/my_camera_pizza_pic.jpg&
image[0][user_generated]=true&
access_token=YOUR_ACCESS_TOKEN
If the photo is not user-generated, then explicit sharing is an alternative to get maximum display size on news feed and ticker provided that you follow all the requirements and guidelines for explicit sharing.
when others (non-users included) click on the photo, it takes them to a specific page that is related to the app instead of zooming into the photo by default
This is not possible because FB users expect the behavior to zoom the photo in when clicking on it. If clicking on a photo launches an URL, it is a bad user experience because that is not what anyone expects when clicking on a photo on FB.
The best workaround I can think of is to edit the description of the image with a link to your specific page on your app, such that when a FB user sees the picture, they can click the link in the description to go where you want.

On Facebook share URL, give option to user to choose image

I don't see the answer I'm looking for, so hopefully someone can help.
I have a PHP script, which displays data from an SQL database. The dynamic elements are pulled in, essentially showing details of a job listing. On this page, I have a Facebook share URL.
Example:
<a title="Post on Facebook"
href="http://www.facebook.com/share.php?u=http://www.mywebsite.com/joblisting/details.php?job_id=1345488636.3750">
POST ON FACEBOOK
</a>
When the user clicks that link, they get the Facebook page to post this to their Facebook page. The page they are on pre-populates with my page title, page description, etc.
And if I have an image on my page, that becomes the default thumbnail image for the FB post. I also set a defualt Facebook image in my metatag, and that works too. I also added up to 10 other images on my page, so that the user could choose from 1 of 10 images as the default thumbnail. But...
I wanted to be able to let the user choose a thumbnail image from their desktop. Is this possible?
The image that's used in the Share dialog needs to exist somewhere on the web before the dialog is invoked, so you'd need to allow the user to upload it somewhere before popping the dialog in order to do what you're suggesting.