I am making a user registration / login system in php and want to verify the user by sending him/her a verification code that the user has to type to make an account .
Now i dont want to send the verification code through mail( phpmail / phpmailer) or any sms service, instead i want to send the code to his facebook messages inbox from my facebook account by using his email id..is it possible to do so? is there any method or api that allows such type of function?
Thanks in advance
This website provides a powerful api that will do just what you need.
You can also check the Facebook doc
Related
I would like to to have a notification system to alert the user via Google SMS system and register user with their phone number. I would like to send the alert when certain condition is reached in a PHP web application. Would it be possible? Could you please give some suggestion?
Yes it is possible. There are apis available for this functionality. You could implement this yourself and you can send text messages via email if you use an api to figure out the phone carrier of the user.
I am using heroku, php and javascript, I am a complete newb.
I have a facebook app that asks the user for their name, birthday and email address. I want this information emailed or inboxed to me or better yet create an event on my xxxbirthdays calendar?
Facebook can't send emails for you. You'll have to implement sending emails in your server side code. Easiest to use the built in php mail() function.
Friend's birthdays already appear on your calendar, but here is the documentation for creating events -
on behalf of a user - https://developers.facebook.com/docs/reference/api/user/#events
on behalf of a page - https://developers.facebook.com/docs/reference/api/page/#events
I'm using Facebook Connect on my website. I need to enable users to send themselves automated private messages from my site to their Facebook account. Does the Facebook API allow this?
Edit: I found a solution https://developers.facebook.com/docs/reference/dialogs/send/ however I need to send messages without the user interacting with the write message pop up. Messages should be sent directly if possible because they are automated, set up by the user once.
You can send to their facebook email. Facebook email is consisting profile nickname+'#facebook.com'. The email will goes to their facebook inbox message. Note that facebook email does not accept spoofing email. You will need whitelabel domain or use SendGrid.
i am able to download gmail contacts using the api. without entering the user's email and password.
Sending the authenticated request with a valid access_token i am able to grab all user;s contacts who has authenticated my application. now i want to download the users email messages from inbox.
If you grab contact , then YOu are familiar with oauth .so you just change url of contact graber of google to email..
I think YOu used this URL https://www.google.com/m8/feeds/contacts/default/full/ to get contact after authentication.Instad of this use https://mail.google.com/mail/feed/atom/ URL..
For playground visit this url : https://code.google.com/oauthplayground/?code=4/-UYL6NIP2avszVz3hTNIs6Z8vmOe
I definitely know that you can't send a message to other users, but is it possible to allow users to send messages to me?
Lik something similar to Twitter's direct messaging API, where the user authenticates my app to allow them to send messages through the app to me?
No.
Sending a private message to a user using graph API is impossible at this time.
You CAN however use this (using Javascript SDK): http://developers.facebook.com/docs/reference/dialogs/send/