I setup my tracking links for my facebook campaigns in php redirects, i put the appropriate keywords in my tracking links for each ad, although prosper does not seem to be telling me which keyword for the ad i assigned is being clicked.
Here is how i set the tracking link.
https://www.facebook.com/mytabpage/app_skfjaslkfj?t202id=661&t202kw=CPGN1
Passing tracking data into FB fanpages is not at all that simple. See here: http://stmforum.com/forum/showthread...on-on-Tracking
Hi Zeno, you say the URL has to have ?app_data=xxxx in it. If I am setting this up for prosper would ?app_data be https://www.facebook.com/mypage/app_PAGE_APP_ID?t202id=789&t202kw=CPGN1
I'm trying to figure out how this would connect to prosper, would i need to place the PHP file you scripted out into the Prosper folder on my server?
No, it has to be ?app_data, nothing else. I.e. if you used ?app_datax it would not work, this is something dictated by Facebook that we can't change.
To connect to prosper you would need to pass something like ...?app_data={"t202id":"id_here","t202kw":"CPGN1"} . That will get passed through into the FB iframe and you then have to disect it. You will need the script I posted to be the PHP file that loads in the FB app, and at the bottom of it you could add a header redirect with your prosper landing page link or w/e with the t202id etc stuff added in (since you can now get these from FB). For example:
[PHP]
<?php
$signed_request = $_REQUEST['signed_request']; // Get the signed_request data that FB passes (lots of shit)
$pre = explode('.',$signed_request); // Get the part of the signed_request we need.
$json = base64_decode($pre['1']); // Base64 Decode signed_request making it JSON again.
$obj = json_decode($json,true); // Split the JSON into arrays.
$app_data = json_decode($obj['app_data'],true); // Get out just the app_data part
$t202id= $app_data['t202id'];
$t202kw= $app_data['t202kw'];
header('Location: http://prosperdomain.com/whatever?t202id='.$t202id.'&t202kw='.$t202kw);
[/PHP]
Zeno, I've PM'd you.