Sending email notification via GRAPH API Facebook - facebook

Does anybody know how to send a notification email via GRAPH API. I found some code in REST API like (notifications.sendEmail) but is there something in GRAPH? Thank you.

No, there is no equivalent, and no plans to add one.
From the Facebook Documentation:
Please note: We are in the process of deprecating the REST API,
and will not be adding support for this in Graph API.
Developers should directly send email to users once they are granted permission.

Related

Bot read from my api endpoint

I am creating a bot on facebook messenger, following the tutorial here
Is there a way for the bot to retrieve results from my own api endpoint?
Essentially, I have set up an api endpoint from which results in json is to be returned. I would like the results to populate the template in facebook messenger, like how the current CNN messenger bot shows news based on queries
How do I do this?
Your bot can do anything you want from him. But you have to setup him first on your server...
What he will return, or his behaviour is up to you.
You can use PHP with my API: https://github.com/Fritak/messenger-platform
Just follow an example and then return generic template.
You can use API.ai to create chatbots on Facebook messenger pretty easily. Full disclosure = yes I work there. We've had great feedback on our FB Messenger integration as well as Slack, Kik, Telegram, Twilio SMS, etc. https://docs.api.ai/docs/facebook-integration

Facebook comments subscribe to thread/conversation via API

I am using the new facebook comments module, and I am intersted in subscribing a user to a conversation via the API. I am referring to http://developers.facebook.com/docs/reference/api/Comment/ but this doesnt seem to have an API call for a user to subscribe to a conversation. Any help is much appreciated.
Thanks in advance.
The comment plugin has subscribe options for each item in the thread for the users. That would be the easiest for the user. Their currently isn't a documented API method for this. You could build something yourself manually, and while possible, it will have the problem that you won't be able to notify them very easily like Facebook allows with the red notification api (you would have to resort to emailing them or something similar). You would also need them to authenticate your application and prompt for various extended permissions.

Can I use some API call to invite User's Friends?

I want to invite facebook friends to my app. via some sort of API call whether rest or PHP Sdk, so is there a way to do so. I know about multifriend selector in FBML but don't want that. Please tell that which API can be used to do so? Graph API or any other? I am using PHP so if you know some PHP API call then that is also good.
thanks in advance for assisting me.
You can use the Requests Dialog for invites. This will prompt the user for which friends to send a request/invite to. This is designed to work in iframe apps, no fbml required.
http://developers.facebook.com/docs/reference/dialogs/requests/

Using both Facebook Graph API and Old Rest API? Please help!

I am developing a Facebook application that will use Facebook events.
I want to be able to create and edit event as well as invite users friends to the event.
I prefer to use the new Graph API to handle all connections with Facebook and I many ways I am able too, but, the Graph API cannot send invites.
I saw that the Old Rest API got far more ways to interact with Facebook so I tried to use both systems on the same time but when I send the Access token that I have created with the Graph API a long with a call to the old API it says "Invalid OAuth 2.0 Access Token".
My question is, is there a way to convert the new Graph API access token to be used with the old rest API? Is there perhaps another way to get both systems to work in the same application?
Please help! All input are welcome.
I´d recommend against the old REST api. Support will be canceled sooner or later and then you will have to port to graph api anyway.
To send invites to your app you can use fbml/xfbml. try the http://developers.facebook.com/docs/reference/fbml/multi-friend-selector togehter with the JavaScript SDK as described here: http://www.takwing.idv.hk/tech/fb_dev/jssdk/learning_jssdk_11.html
good luck!

Which Facebook APIs can be used to programatically post a message?

I have an application that allows a user to post messages. I'd like to give an option to users to propagate the same posts on their Facebook wall / status. Which Facebook APIs can I leverage, including the ones that are need to authenticate the user?
You can use Facebook's JS API (useful for client-side), the new Graph API, or the old REST API. Facebook has extensive documentation at http://developers.facebook.com/docs/
The easiest path is probably to use the Facebook.streamPublish() function through the FBJS API.
You can also use streamPublish() through direct Facebook API calls, but you need extended permissions. Using FBJS, Facebook will display their own prompt to the user, so you do not need extended permissions.