I am trying to add CUSTOM share buttons to my website for Twitter and Facebook. Is using sharer.php for Facebook appropriate still? How would I pass the Open Graph data? As for Twitter, how would I pass the Twitter Card data? I typically use Addthis.com plugin but it is not appropriate for this project.
I was able to accomplish implementing sharing functionality by using the following:
Facebook https://developers.facebook.com/docs/sharing/reference/share-dialog
Twitter https://dev.twitter.com/web/tweet-button
The facebook share dialog automatically pulled the Open Graph data from the page.
Related
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
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.
I have created a button on a test website which gets the user to post a custom Open Graph story using the Facebook Javascript SDK. (*** is going to an event).
However, my users do not get the option to post this action to their Groups Timeline, or share on a friends timeline – see the below Facebook sharer dialog, (where you are always sharing a link – I don't think you can use Custom Open Graph actions with the Sharer).
I've looked all over the Docs and can't seem to find a way to make this functionality happen – trying to avoid users having to login to my site with Facebook/ generate a user access token.
Any solution?
I am working on Facebook app and wanted to add Share functionality so how I can do share functionality using Facebook graph API?
By the poor way, you can use the Like Button to the desired URL, but with the label "Recomend".
The better way is to develop the application with some Authorization to post inside the user's feed. By this way, you can use the Graph API to post inside user's feed.
If both ways are too time-expensive for you, try to use ShareThis.
I created a Facebook APP which is being used for FB Connect Feature... everything is working fine.
But now I would like to display my APP on the Wall and News Feed, and also give the user the opportunity to share my APP.
How can I do this? I searched on Google and checked the Facebook API but couldn't make it.
Check out the Facebook Social Plugins...
Here you will find methods to embed share and like buttons on your site. When users interact with these social plugins, stories will be created on their feed and their friends will see this activity.