I am able to post message with photo to my friends Facebook wall using my Facebook app.
Clicking on the post in Facebook wall should open light box with post details like photo and message.
How to open facebook post in light box in facebook.Is it possible?
Please advise.
Take a look at those possibilities: https://developers.facebook.com/docs/javascript/reference/FB.ui
You could use the Send Dialog to send something to a friend. You don´t even need to authorize the user if you want to use those FB.ui Dialogs.
You can NOT use your own lightbox for that, Facebook luckily does not allow you to post to the wall of a friend with their API.
Related
I'm writing a facebook bot and want to enable the user to be able to post or share a URL, description and hashtag to their own wall, from within the messenger app.
Looking at messenger it appears as though the only native sharing options are to share to other messenger users or post an update to your day, not post to your facebook wall.
The only way I can think of doing this is having a standard FB share button hosted on the page I want them to share, but that would not be as fluid a user experience for the user, it would be lovely if there was a way within the messenger app that I could enable the user to share the URL with description and hashtag directly.
Is this possible? Thanks.
Is it possible to post a comment on users facebook wall after submitting a button on my website?
On my web page users can review certain products and after they review them the press on ‘submit review’ button. I want to make the review report to be published on the user’s facebook feed.
Thanks in advance,
For a normal post, you can use the Feed dialog – this does not require that the user connect to your app first.
If you want to post via API in the background, then you have to have the user login to your app first.
If you do not want a normal post, then look into Open Graph actions: https://developers.facebook.com/docs/concepts/opengraph/
I have a web site where a user authenticates using Facebook and based on an action of the user in my site I post to a friend's wall.
To post on the friend's wall I use the graph api, posting to "/userid/feed". And the posts show correctly on the friend's wall.
The problem I'm having is that if the post has a link on it (using the "link" argument) it won't be displayed in the notifications section of the friend's Facebook (i.e. the globe icon on top). If I just post some message and a picture to the wall it does show on the notifications, but links won't show.
Is this the expected behavior or is it a bug in the API?
In any case, how can I do something that assures me that my user's friend gets a notification in their Facebook?
Thanks for the help!
Yes this is expected behavior. There isn't really any way around this. You can send an app request that links to the post, but it will only manifest as an app notification, which does increment certain counters, but not the globe at the top.
If I have a Facebook photo, can I add a Facebook button in an application that when clicked inceases the likes for the photo?
The parameter for the like button is a url. What do I need to put there so when clicked, increases the like count for the photo on Facebook?
No this is not possible - it's always separate.
You could do this through graph API and make POST to <POST ID>/likes/ but the Like button plugin only works for Facebook pages or URLs off-Facebook.
It does not work with content on FAcebook.com
Via the Facebook Like Plugin, as you said is url so it will not work.
The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website.
Accoring to the documentation,
You will need to use the Facebook Graph API photo object by sending a HTTP request to photo_id/likes, where photo_id is the id of photo in question which you can also find from the photo link itself
https://www.facebook.com/photo.php?fbid=[photo_id]
You will also need to have the user grant publish_stream permissions.
You can try to use the Facebook Graph API explorer to try it, though I have not been able to get it working.
I have a game on my website and I want to share the score on wall facebook account wall. I have searched and found that it can be done with facebook connect, but through facebook connect I am able to share only URL of any page. So can anyone kindly help me and tell how share score and my custom message through facebook connect. Thanks
To make a custon message, you would need a Dialog. You can see about them in here:
Link 1
and
Link 2
The second link is an extension for what you want. Just fill the data you want/need about your highscore, and it will be ready to display!
It is not necessary to use a dialog. You can make a direct request to the facebook url using the open graph API.
Take a look