Use Facebook Messenger bot to interact with Shared Days - facebook

I have just started looking into Facebook Messenger's bots and am thinking of making one.
Recently, Facebook Messenger has introduced the idea of Shared Days, which are basically Snapchat-like stories that people can post to and share for their friends to see.
Does Facebook's APIs allow one to use a bot to create stories (post pictures to shared days)?
I am looking at the APIs and cannot find anyway to do this. I want to create a bot that can post stories on Facebook Messenger's Shared Days. I want the bot to post stories periodically on its own story that only its subscribers can see, if that's possible.
Any reference to some documentation, and perhaps a simple toy example would be helpful.

Currently, you cannot post to a user's or page's "My Day" using the Send API or any other apis.
That doesn't cut you off entirely from using them in your bot, however. Facebook is making it easier to share content from bots to your friends or my day with each iteration of messenger.
When your bot puts an image file into chat as an upload, your user can click the share arrow next to the image, or at the bottom left when fullscreened, and share it to their day, their friends, group chats, etc.
IMO, This is a very powerful viral tool that no one is using yet.

Related

How to publish a persolized newsfeed on users stream in Facebook?

I read the Facebook developers guide, but I'm not sure to have well understood wheter my goal is achievable or not.
I have developed a small app that asks to users their topics of interest, so they will receive filtered updates on those topics. This currently works, my database stores users and topics.
Now I want to publish on registered users stream a newsfeed if there are updates on the topics they selected (in the oauth dialog I asked permissions for "publish_actions").
My app doesn't use OpenGraph, I would that the newsfeed has my apps as title, a small picture and a brief description and it links to and external site (not mine).
The feed is personalized, so that's why I don't use a Facebook page.
Is it possible to realize this?
Thanks in advance
This is not allowed by Facebook Platform Policies. Publishing something to the wall must be related to something the user has done, e.g. User has read an article or User has achieved a high score. Posting an link / article to the user's wall is not allowed since it's not a direct action the user has taken.
Instead, you should provide the user with personalised RSS feeds. Each user would have their own RSS feed related to the topics they have indicated they are interested in. Facebook shouldn't be used in this way.

How can I like a post/comment in facebook fan page from my custom website

I am importing the posts and comments in my FB fan page to my custom website. I am importing using graph api. In the response array I am getting two types of action URL for "comments" and "likes".
See below :
http://www.facebook.com/149263441795729/posts/240758399312899
Using this link in following code
<fb:like href="http://www.facebook.com/149263441795729/posts/240758399312899" width="450" height="80"/>
I get the following error
The page at http://www.facebook.com/149263441795729/posts/240758399312899 could not be reached.
How can I like these posts or comments from my website? Is there any solution for that?
I think--I'm no expert here--that redirects such as this are controlled by Facebook, with a cross-site scripting policy file on their servers that say whether or not they will allow redirects and to who. On my website for example I allow anybody to cross link, since I'm just a little guy, but I bet Facebook only allows it with preferred partners like various corporations, see the story below. That would be my best guess.
Paul
http://thenextweb.com/facebook/2011/09/15/facebook-may-be-adding-cross-linking-to-foursquare-yelp-gowalla-and-more-on-pages/
Facebook may be adding cross-linking to Foursquare, Yelp, Gowalla and more on Pages
Facebook appears to have added cross-linking between Pages and other location-based sites like Foursquare, Yelp, Gowalla and SCVNGR to its Pages, reports Scribbal. Tech evangelist Robert Scoble posted a notice on his Google+ profile earlier today that indicated a new partnership between Foursquare and Facebook as the Page for a place was shown to direct viewers to the comparable location on Foursquare.
The links appear off to the left underneath the ‘Like’ count and checkin count on a location’s page. The only question that remains is whether the users are activating these connections themselves or if it is something that is done automatically. This could be Facebook’s plan to integrate itself with other location sites now that it has distributed the Facebook Places features throughout its framework.
Facebook has been on a tear lately, adding the Subscribe button and smart Friends list features just this week, as well as Facebook integration into the new Skype for Mac. It is clearly making an effort to maintain its lead over Google+ as the preeminent social network and it doesn’t want lack of features to be a reason for anyone to quit it.
We have reached out to Facebook about this new feature and will update this post when we hear back.

How to merge comment stream on Facebook events and my own website

I have a website that allows people to post events and it automatically posts their events to facebook if they so choose. I also integrated facebook comments on the event pages on my website.
Is it possible to merge the comments that people leave on my website's event pages with the comments that people leave on the facebook event page that was automatically made for them? I can't seem to find any documentation on this.
Edit: Just to clarify: The comments on my website are done via the facebook-comments API, they are not a module of my application.
Adding a separate answer, as after clarification it's significantly different.
If you want to basically have the wall of your event show up on your website, you can use the Event API to pull in wallposts and display them. To be able to post to that wall, you would have to do some custom coding to authenticate the user with publish_stream permission and then have a form on your site that would post to the event's wall, as noted in the post section of the above link.
Someone may have done this already and put code out there, but I doubt there is an easier way to get your ideal situation up and running. This use case isn't as automagic as the comments box, unfortunately.
If you're just looking to spread your events socially, however, the comments box will post to the commenters' walls with a link to your event page, which can then in turn point them to the Faecbook event. You might be able to use the Facebook event's URL as the URL for your comment box on the website, so it would just post a link directly to the Facebook event, but I'm not sure on that one.
I looked at this in my app, and we ended up deciding to just maintain separate streams. This is because it's only a one-way integration - you can get comments from Facebook via the Graph API and format them on your own website, in-line with your website comments, but there's no way to push comments from your website up to Facebook.
You could, if you wanted, just use the Facebook comment form for all comments - this has been done by big sites such as TechCrunch, and is effective, but it requires users to have a Facebook, AOL, Yahoo, or Hotmail account. Whether you want to do that or not depends on your preferences and userbase.
there a tool that combines comments form different pages or different sources
Check https://feedgun.com which works on pulling comments from different sources like YouTube videos, existing wordpress sites, facebook comments plugins and even DIsqus account and combine them all together and publish them on any of your webpages, and it all works automatically once you set them where to pull and where to publish.

developing/testing facebook apps while I'm not a facebook fans

My next side project is a facebook app. I spent a day on reading through the facebook documentation, and then figured out my facebook wall is almost blank. So how can I get enough sample data for developing/testing facebook apps in a quick way? Or which facebook geek has an account with tons of public data that I can test my app with? (I know I can create several test users and friend/comment on/like/... each other, but it is tedious to do this you know.)
Test users cannot interact with other users outside of their app, so I think what you're thinking there doesn't work. Additionally, it's against Facebook TOS to log into another user's account and I'm not aware of any public data sources. Regarding finding a bunch of Facebook pages, check out the Facebook page browser, which allows easy liking and management and should fill up your feed in no time.

Hiding application source when posting to Facebook fan page via graph API

I've successfully posted to a fan page as the actual page via the Graph API.
The problem is that the post says it was posted at "time via application name". Is there any way to hide this, so my post looks exactly as if I typed it directly into Facebook?
I'm building a messaging center that can easily deliver messages on many different channels, Facebook being one of them. Clients probably won't appreciate their Facebook posts linking to my application, nor do I want to set up a new Facebook application for each client.
There is no way to disable this. It is an internal Facebook system and is very deliberate on their part to show users where content comes from and make it easier to report malicious and spammy apps.