how to auto share link to facebook - share

I have a link http://news.bamlike.com/index.php. When i click on link to view article.
if you has loged in facebook and accecpt with some permission in this apps.
It'll auto share that link on facebook timeline (Activity
Recent) .It's like you're just click like it.
demo image: http://tapchidesign.hostoi.com/help2.jpg
How can i do it ?
Thanks you very much !

On each page load, check if the logged in user has authenticated your app. If they have, publish an open graph built-in "read" action. Read the documentation about built-in actions

Related

Facebook: custom Open Graph needs Login?

I would like to share a link on Facebook and make it show up on the Timelime as a map.
I have seen some apps like Runtastic are able to publish links as maps, by definining the map coordinates inside the html source of the link.
Ideally I would like to share such links using the simple Share Dialog, without implementing the full Facebook Login systems inside my Android and iOS apps.
But I found this written on the documentation:
To publish Open Graph stories with the Share dialog, you do not need
to implement Facebook Login or ask for additional permissions. For
more information, see Share Dialog.
If you create a custom sharing UI to publishing Open Graph stories,
you need to implement Facebook Login and request the publish_actions
permission from people using your app. This also means you need to
submit your app for review, see Login Review.
Does it mean that if you want to share custom Open Graph stories, you always need to implement Facebook Login on your mobile apps?
As far as i know, and as i understand it, it depends whether you want to share it from inside your app or not.
If you want to share it from inside your app, then yes, you'll need a login.
If you are ok with just giving the link over to the facebook app, then giving permissions is al you need, and then make the final post inside facebook, as you usually are logged in aready.
How to create the Open Graph Object is described in Facebooks API:
https://developers.facebook.com/docs/sharing/opengraph/custom
And also is there another answer which could help you:
Using Facebook Open Graph Story with map attachment (GeoPoint)
I hope this helps you

Facebook Open Graph actions for a simple website

I am trying to use the "Share Dialog" to share a URL on peoples News Feed. The URL I am sharing is using a couple of custom Open Graph actions. We submitted the actions for review, but the submission is getting declined because we don't implement Facebook Login?
The site is a simple marketing site, and we don't have any kind of login. Can we not use Open Graph actions without Facebook Login?
You don't have to implement Facebook login functionality. The message you received contains just the sample instructions (they used the example of the common app using Facebook login). In your case you should include rather something like:
Press the "Share" button (including screenshot of the page with the button)
Share the message (including screenshot of sharing box)
*Display message/other action after sharing (if applies)
Additionally you would need to brief how are you going to use the Open Graph actions that you are mentioning. And that would be enough.

Graph API 'likes', publish_stream permission, app unapproved

I have a website that does the following:
Retrieve Facebook Page posts from a specific Page.
Display posts on website.
If a visitor is not logged in to Facebook, display a custom 'log in with Facebook' button next to each post. Otherwise display a custom 'thumbs up' button.
By clicking the 'thumbs up' button, the user is able to like the specific Facebook page post with their own Facebook account. Nothing should show on the user's timeline other than the regular posts that Facebook displays whenever a user likes something on Facebook.
I'm using the Graph API likes method (https://developers.facebook.com/docs/graph-api/reference/v2.2/object/likes/) which requires the publish_actions permission.
Everything is working great, users are able to like posts on the Facebook page from the website, and the action shows up in their Activity Log.
The problem is the app is rejected for the following reasons:
Notes from our review team (Web)
The expected story doesn't publish back to Facebook. I've tried with different test users to reproduce the publish_actions, but nothing is publishing. Please check links and resubmit. Also provide a timeline screenshot of the publish story. Thank you.
publish_actions (Web)
We could not reproduce the requested permission. Please submit a timeline screenshot of a successful publish on Facebook, as well as detailed, step-by-step English instructions in the "Add Notes" section of the permission.
See here for additional information on login permission requirements.
I've provided step by step instructions, screenshots of the website as well as a screenshot of the user's Activity Log that shows them liking the post. Still no luck.
I think the problem may be that they are expecting some sort of story to be displayed on the user's timeline, which I don't need or want. I just want to let the user like the post from a Facebook page which DOES work and confirmed by everyone who's tested it on my end.
If anyone can point me in the right direction (I'm unable to provide screenshots or code here, sorry), it would be greatly appreciated. Thanks in advance!

Publishing Updates to Facebook Users That Like'd a Link on My Website

I am trying to figure out how to get to a spot where I can interact with those that "LIKE" a link on my website. I have seen both of these articles on Stack, but they have not helped me.
Facebook Like Button + Open Graph + Website = Pushing Updates to Likes?
No "Admin Page" link on Facebook Like button on a web page
I have a feeling that the second link above is just not up to date anymore for the new Facebook.
My site is http://www.UpcomingEvents.com.
Any help would be GREATLY appreciated!! We have some heavily LIKE'd urls and it would be great to be able to get info to those who are interested.
Thanks in advance!
Dennis
I must say, luckily this is not possible anymore. I don´t want to suddenly get stuff in my stream on facebook just because i liked one article/page on a website.
Here´s the info:
https://developers.facebook.com/docs/reference/plugins/like/migration/
With this admin page deprecated, developers will no longer have the ability to publish updates to users who have clicked on a particular Like Button. The REST endpoint to publish updates for a Like Button will also be deprecated.

User should view my facebook Wall page, even though they are not logged in?

I have a Website, when user click on ( Follow us on Facebook ) button it should link to my Facebook wall page, example ( http://www.facebook.com/totallydriven )
I have added Username as totallydriven in My Account page,
But when my user clicks on ( follow us on facebook ) button, facebook is asking to log-in to view my wall.
What is the setting I should change.
Some example facebook profile.
Even though you are not log-in to your facebook, you can view their wall.
http://www.facebook.com/HuffingtonPost
http://www.facebook.com/easportsfifa
Try following steps:
Log into your facebook account and go to the page.
Click Edit Page. You will be taken to the Manage Permissions page. Make sure, for Country Restrictions, you have no countries listed. Listing a country here causes non-logged in visitors to be asked to login, rather than seeing your page as you desire.
Remove the countries and click Save Changes at the bottom.
I just figured this out for a page I manage which was doing the exact same thing.
You can control which data you want everyone to use on facebook's Privacy Settings configuration page. Posts by me and Comments on Posts are the two most important settings to allow a public Wall.
There is a preview button to see what everyone sees as well.
It looks like http://www.facebook.com/totallydriven is a Facebook user (hence the button to add as a friend). The others you mentioned http://www.facebook.com/HuffingtonPost and http://www.facebook.com/easportsfifa are Facebook Fan Pages.
Go here http://www.facebook.com/pages/create.php to create a Facebook page that users can "Like" and follow as you have described.
Facebook requires a certain number of LIKES before you are provided a customized facebook URL.
http://www.facebook.com/YOURBIZPAGE