Facebook recommend this site to a friend - facebook

I am trying to achieve this but i dont know what i should use. I looked here first
If a new user registers to the site and non of their friends have registered when they click on a add friend button
Find friends via Facebook
Post To F/B Wall (Message "Hey all i am really enjoying this site, come visit.")

The plugin is basically an optional shout, if you want more versatility you should make your own calls on the Graph API yourself, allowing you to find out more details about the user and their friends.

Related

How to create a Facebook "challenge a friend" event?

We have an application that lets users challenge their friends in various challenges. Right now we issue the challenge by posting a message to their friends wall. This functionality will be removed in february so we need to find another way of issuing the challenge. What are the alternatives available?
We want the friend to get notified that the challenge has taken place and that some kind of story is generated on some wall.
We have looked at open graph actions and the mention tagging there must be done by the user herself so we can't use that to mention the selected friend. And we cant use action tagging since this is not an event that has or is happening.
It might be possible to use an open graph action referencing the built in "Profile (External)" object, but that seems to be rather messy - we just want to reference the facebook user. And we don't know if the friend would get notified of this - probably not.
The story could be published to the users own wall, but we really want the friend to be mentioned and notified.
It seems to be a rather standard use case for applications - does facebook provide this functionality anymore?
Edit: I'm thinking that maybe invoking the javascript feed dialog with a from and to setting might work. Then the user can also write a personal message for the challenge, and it should show up at both walls?
The best way to do this is by using a request: https://developers.facebook.com/docs/requests/
Of course it will not be public then, but after all it´s a direct action between the user and his friend and other users might see this as spam.
The other way (and the second best, i guess) is to use mention tagging:
https://developers.facebook.com/docs/technical-guides/opengraph/mention-tagging/
You could use Open Graph to post a dynamic link, if the mentioned user clicks on it > challenge accepted. If any other user clicks on it, he will just get redirected to the main app page.
...another idea, which is probably the very best:
use the request dialog for the challenge
after sending the request, let the user (if he wants to) post a message about it on his wall (feed dialog)

Posting something that happened to Facebook through an HTML Button

I've looked through several tutorials on using the Facebook API, but none of them address what I'm trying to do.
I'm working on a website for a small college. When the user applies online, they would like it to redirect to a page with a link that will put a post on your Facebook wall that says, "Billy just applied to Awesome State College" with a link to apply and an image of some sort (probably the school's logo).
I guess it would be similar to the way Facebook games throw up posts, saying "Gertrude just clubbed 300 baby seals in 'Clubbing Baby Animals Pro'!" But I wouldn't need to create a whole new Facebook app for this, would I?
Posting on a user's wall requires an access token, which you can get with the help of
one of Facebook SDKs, which will need your app id.
Reference for posting on user's wall:
http://developers.facebook.com/docs/reference/api/
See section Publishing.
You can use Facebook Javascript SDk as the need is simple:
http://developers.facebook.com/docs/authentication/client-side/

How can I get user's best friends throught Facebook Graph API

I am designing an App for iPhone and I want the user to share my App to his or her best friends. Now I can get user's friendlist throught Facebook Graph API. But how could I find user's best friends? I have an idea that I can use the user's wall to find which friend often appears on the wall. However, some pages and famous people like Obama always appears on the wall. Could someone give a feasible solution?
Define “best friends”, please.
If that is supposed to be something based on the user’s personal perspective at the very moment – then probably best to just let them choose their “best friends” the want to a request to themselves via a simple multi-friend selector.
Or are you referring to a user’s list of “close friends”, the default friend list on Facebook that every user can add friends to? That’s available via API, check the /me/friendlists connection. https://developers.facebook.com/docs/reference/api/FriendList/

How to use Facebook Application to write a notification to Users

i'm developing an application for a university exam, using Appengine and Gwt (Google products) and i'd like to implement Facebook this way:
- give the ability to a FB user to login to the application through facebook (did this implementing the oAuth2.0 flow, so now i have the user's access token and his permissions)
- since the application is for being notified when a professor publishes some material for his course (this is all handled by appengine), i'd like to notify the user when a professor publishes some material, through a wall post or a note from my application in a way that it writes to the user something about the new published material.
I've been looking through EVERY single resource online, and couldn't find an answer: a lot of similar questions but no answers.
Writing the POST is not a problem, and for the moment i'm trying with the api graph explorer.
I manage to write on the user's wall/note as if he's writing himself or (if the user likes the application) write all the likers a wall post/note (but the same to everyone).
But i don't find a way to send personalized wall posts/notes to every user in response to some specific material published.
FB doesn't allow to do this because is considered spamming?
You can't directly post things to your user's wall as a way of notifying them - wall posts are intended to be things the user posts from within your app (for instance, they find something in your app interesting and choose to share it with their friends, so they click a 'Share' button).
You could try using an App-Generated Request (http://developers.facebook.com/docs/channels/#requests). This will increment the user's Bookmark Counter, and when they click on it they will enter your app and you can show them the latest news.
OR, you could ask for the 'email' permission for your app, and send the user an email notification when something is new.

Facebook - Refer a friend functionality

I need to create some functionality on a clients website which lists the users friends and allows them to send a link to their inbox.
So far, I have it listing the users friends using fb.api functionality, but from what I can see, there is no way to send the users friend a message (not post to their wall, this needs to go into their inbox.)
edit: The user would log in first.
Does anyone know if this is possible? I've tried looking at fb.ui but I can't seem to find anything useful.
I think this is (or should be) impossible. I wouldn't like it at all if a third party could send me messages because one of my friends allowed it. I guess that would be my last day on Facebook.
I would suggest you look into the fbml fb:request-form doc's. It looks to me like this is what MGM is using. This allows a user to invite friends, and I think it's as close as you can get to what you are truly after.
http://developers.facebook.com/docs/reference/fbml/request-form