How can my facebook app send me an inbox or email? - php

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

Related

sending user verification code through facebook

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

How to write a code that automatically get the respodent's mail id using forms..(like google forms but not using it) ...?

In Google forms, we have an option collecting the user_name (i.e mail id) of the respondents.
What is the code for having the same feature but using other form developed using HTML, etc..
You'll have to ask them for it. There is no universal, automatic way to get a user's email address — it's only possible on Google Forms because the user is logged into Google with their account (which has an email address associated with it).

Sending emails to friends from facebook application

I want to invite friends via facebook to my application. For example user can send his friends facebook IDs to my php service, and this service send them emails via facebook api. I found notifications.sendEmail function for that, but it send email only for me if I logged in FB. So, can I send invitation emails by FB api if they are not users of my application?
For sending app requests, please use https://developers.facebook.com/docs/reference/dialogs/requests/ as it is against policy for an app to automatically send app request to friends of its users. It must be user initiated and also user driven as to which friends get invited.
Also, you cannot get email addresses of a user's friends, this is also prohibited.

Send Message to users inbox using PHP based facebook apps

I have created an application which can post to users wall or even send emails to selected users, what I have not been able to come up with is the functionality to let an application send a message to users facebook inbox, I have googled it and found that applications are not allowed to send messages to users inbox however there's this product called rockmelt browser which does the same thing.
There's has to be some way which allows sending messages to users inbox.
Can somebody guide me on this?
It appears that you cannot send a message to a user's inbox. The closest thing may be this http://developers.facebook.com/docs/reference/rest/livemessage.send/. It allows you to send a live message to a particular user's browser.
Hope this helps.
If you are sending the message from your application user to one of their Facebook friends, you can use a Request, which will show up in the notification area. When the user clicks on the notification, they'll be taken to your App Canvas where you can show them the full message and any other app interactions you want.

PHP script to send email invitations to join a site

Are there any popular scripts to send invitations to join a website, to user's address book contacts? When he enters email ID and password, it should grab all contacts and email each one using swiftmailer. I only need the grabbing part :)
thanks
What you want to do is to use the API offered by some mail services to retrieve contact information. This is specific per email service. Google, Yahoo and most of the other email providers offer their own set of API that is what you want to use.
In this StackOverflow thread are contained information on how to use these API from PHP.

Categories