Posting messages to facebook users using their facebook ID - mysql

I have created a page with a facebook login option for users with facebook account on my website.
When they login I store their basic information like thier id, name, and email.
Now I want to send messages/ post on their wall using the IDs I have stored of the facebook users in the database.
Is their any FB tool available or how can I do this using FB javascript to acheive the same?

You can use Post from the GraphAPI to post to their timeline https://developers.facebook.com/docs/reference/api/post/
For obvious reasons of not turning Facebook into a source of spam, you cannot programatically send messages to users.

Related

How to access my own news feed and videos, photos I share?

I'm just making a simple widget where I can display my facebook feed as customized, like grid view.
When I was submitting for app review, there was so much permission when it was my own feed only. I have no plans for visitors to like login into my site. It's just my own feed on my site on grid view.
Are there other simple ways to do this rather than graph API? Simply to get my facebook feed as JSON.
If it is just for your own account, you do not need review. Review is only neccessary if you want to enable other users to use your App - or, for example, if you want to get data of Pages you do not own.
Just use a User Token with the correct permissions to get your account data with the Graph API.

Relating Users with Facebook Login and Parse.com

I want users in an app that I am thinking of creating to have a default image upon signing up/logging in, so integrating Facebook Login makes sense. But, I also want to have a way to relate users and have them be "friends" on my app.
How would I implement such a functionality with Parse.com as my backend? The only way I can currently think about implementing friends using parse is by the username. But, if my users log in with Facebook, they will not have a username for my app.
Thanks in advance.

Create Website with Facebook API to collect invited User ID's

I am looking to integrate Facebook into my website. The website is basically an online meeting and the user has to know the host's username to log in. I was wondering if there is a way withing the Facebook API to invite specific users and link them to this meeting object, I was thinking by pulling the invited users User ID and inputting it into a database, so that when the guest goes to the party they just have to log into Facebook and it will bring them to the correct party (by MySQL search matching their user ID with a meeting). I hope I explained this correctly, but is there a way to do this with the API, or even a better way to complete this?

How to retrieve Facebook user profile unique url/id

I am planning to have a competition as a first promo for my page.
I will be using PHP for scripting.
I will uploading the scripts to a web hosting server and call the page url on FB.
On FB, I will creating unique woobox app. I will call this page on that app.
What I need on is, when the participant is given the page he/she can participate, the programe should first check if this user has already participated or not in the competition.
If he has already participated, he should be directed to a page where it will say, u have already participated.
If not he/she should be directed to the page he will give his Name, Country & email.
On this page too, I prefer to make use of Facebook api to get the Name, Country, & email id instead of asking participants type in these info..and also get the user profile id and save in the db base, do avoid duplicate enteries
I am totally blank about this FB api n graphs...
Need you fullest help on this.. pls...
The registration plugin can grab a users info and allow them to register, the plugin will post that registration info to which ever page "database" you need.
refer to: http://developers.facebook.com/docs/plugins/registration/

Facebook photo name showing on website

How can I get the user's photo and name to show on my website and save them in MySQL?
This can be simply achieved by querying Graph API with id of user
http://graph.facebook.com/USER_ID?fields=name,picture
Results will contain name of the user and URL to his picture
you need to get permission from user that uses your application.
once you have user_photos permision you can do whatever you want.
you can find all permission in here: extended permission: https://developers.facebook.com/docs/authentication/permissions/#extended_perms
and look out here:
https://developers.facebook.com/docs/reference/api/photo/
Juicy is right that you can get that information. Turgut is not right about the authorisation as you can actually get that information for anyone if you know their Facebook Id. And therein lies the issue. If you are in a facebook app then facebook will post the user's id with the request for each page within the request object. But outside of facebook iframe apps you will need a way to query the users id. this can be done using the Facebook javascript api.
Here is some further reading:
http://developers.facebook.com/docs/reference/api/
http://developers.facebook.com/tools/explorer/?method=GET&path=735915914
http://developers.facebook.com/docs/authentication/canvas/
visiting users Facebook ID w/out authorization?