Facebook Queries - How to Pass Custom Variables from the Queries Page

I am creating a facebook application that has the function of sending to friends.

Each user is provided with a specific user key that identifies them and themselves.

So Person A invites person B.

So, when person B receives an invitation, when they click ACCEPT, we pass the referrer user link to the URL ... for example http://mydomain.com.au/return_user.aspx?referrerkey=iuahsduiahsdfuiha

So, when person B has already installed the fb application, referrerkey variables are transferred back to our website, so we can manage the link between the two users.

However, if person B has not added the application. And Person B presses the ACCEPT button on the invitation page, which the user must take on the "Allow access" page, from there they return to the APP home page, and I do not need any of the variables. For instance. key link.

So, how can I make this work for both users who have already added the application and havent added the application?

+5
source share
3 answers

Yes, the request flow 2.0 will always put the user back on the main page of the canvas - without avoiding this.

, , "" , . , , signed_request. , user_id , # - . , .

, - request_ids, signed_request.

: Facebook, "" referrer. .

+4

, PHP facebook SDK canvas, , , require_login() auth. auth URL , .

, GET "next" URL- urlencoded . , SDK facebook , . "& next =" Facebook.

+2

, , - .

+1

All Articles