How to create a public post with Facebooks feed dialog - facebook

I am using Facebook's feed dialog to prompt a user to share a link to their facebook wall (
Facebook's feed dialog)
but when I try view the post when I'm logged in as a different user I get an error saying the page does not exist. I'm assuming this is because I'm not a 'friend' of the person that made the original post (using the feed dialog).
My question is: is there a way to set the feed dialog to make the post public and viewable to everyone and not just their friends?

No, only the user has the privileges to determinate the post visibility

Related

How to get "Send Message" button in Facebook Page Post or Image Share via Graph API?

I am trying to automate Post and Shares in Facebook Page's feed using the Graph API.
For simple posts in feed like text and link I was able to do it with no struggle.
(Based in this: https://developers.facebook.com/docs/graph-api/reference/v2.10/user/feed#publish)
Then I got into making a Share of photo or video. Again not a problem. But I have noticed in Facebook Page itself it is possible to add a Send Message button. Where it even has a label with "Add this button to your post so people can reply directly in Messenger."
Facebook create post in Page
I was looking in the actions sections and other places and I found no way to add it via Graph request.
Currently, I am generating the Post via Graph like this:
POST graph.facebook.com/v2.10/MY_PAGE_ID/photos?access_token=PAGE_TOKEN&caption=MY_TEXT&url=IMAGE_URL
It it possible to add the Send Message button via Graph? Or this is only restricted to Facebook UI?
Thanks for the help!
Use this endpoint /page-id/feed https://developers.facebook.com/docs/graph-api/reference/v3.0/post
call_to_action parameter should be
{"type":"MESSAGE_PAGE","value":{}}

How to post to a page using FB.ui()?

I am trying to replicate the "share" functionality provided by the "share" link under a wall post: The dialog shows a dropdown box at the top allowing me to choose whether to post to my timeline, in a group, the wall of a page I manage (etc).
Ideally I'd like to able to do this without having to get extended permissions from the user. So I tried FB.ui() but could only get "Post to your wall" to post to the user's timeline. It doesn't have the same dropdown box at the top.
Accordiong to the doc I should be able to provide a page id as the "from" parameter to enable users to use the dialog to post to a page (assuming they are admins of the page). So I tried this but I always get the same "Post to your wall" dialog (even tho I'm admin of the page given).
The doc page contains a link How can I use the Feed Dialog to post on a Facebook Fan Page wall not liked by the user? but it's a dead link :-[
So can it be done using the dialog? Or do I have to get "manage_pages" permission and post to /pageId/feed (as here)?
Thanks!
Well it seems today I can do it using the feed dialog after all. I tried apage based on the example in the doc added my page id as the "from" parameter and it works.
I need to be logged on as a page admin, but I don't need to be "using Facebook as" the page.

How to get facebook page rss feed (everyone)

If you view facebook page, they are link left-bottom shows rss feed for facebook page, but unfortunately, the feed only shows status update by page owner, is there anyway to get feed from everyone who post the new status in the page....
There's another way to get the feed from a public Facebook page as RSS, which is entirely public and can be retrieved anonymously; i.e. requires no Facebook connect or other stuff. The format for the URL of the RSS feed is:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=rss20
Where PAGE_ID is the Facebook ID of the page. Or even better, as JSON:
https://www.facebook.com/feeds/page.php?id=PAGE_ID&format=json
Use http://developers.facebook.com/docs/reference/api/, get the access_token like this: Facebook: post image and description to wall and in page album via php
These guys seems to be providing an API as well here - https://randomtools.io/developer-api/

Dialog Feed to post on friends's wall AND own wall

In my app http://www.facebook.com/citynumbers?sk=app_195571338990 I use a Dialog Feed to let users post on a friend's wall. It works fine, but it could be better:
After posting to a friend's wall nothing is posted to my own wall/timeline. Can this be done with the Dialog Feed or should I use another method?
I noticed when I do not type an additional text with the post, it does not appear on top of my friends page when this friend is already using the new FB Timeline (unless he or she changes some settings fro the app). Is there a way to fill in a default text with the post where it says "Write on [user]'s wall..." in the dialog? Or another workaround?
This is the url that opens the dialog:
http://www.facebook.com/dialog/feed?app_id=195571338990&link=http://apps.facebook.com/citynumbersfriends&picture=http://citynumbers.com/pics/facebook/clubbing_tn.jpg&name=Voor 2012 wens ik je: veel leuke avonden met je vrienden in de kroeg!&to=[user_id]&caption=Stuur%20ook%20een%20nieuwjaarswens%20naar%20jouw%20vrienden!&description=Powered by http://citynumbers.com&redirect_uri=http://www.facebook.com/citynumbers?sk=app_195571338990
The feed dialog posts only on the timeline of the person selected. If you want the user to make two posts, you need to use the dialog twice.
The second issue is a bug: https://developers.facebook.com/bugs/304599676247502

Adding links to facebook newsfeed

Is there anyway I can attach a link to a news feed (which was not created by my application)?
Lets say that I would like to create a "send a hug" application. So now when a user browse his news feeds he can see a link at the bottom of each news feed saying "send a hug to this person".
One way to create such an application is to display inside the IFrame of the application all of the user's news feeds through the API (and then I can add whatever I want). However, I would not like the user to enter the application tab each time he wants to send a hug, but to show it to him directly on his facebook's news feed page.
Thanks,
Meir
read this
Name Description Permissions Returns
link The link attached to this post Requires access_token string containing the URL
name The name of the link Requires access_token string