Home > Paid Traffic Sources > Facebook & Instagram

Is this how you setup prosper keywords for facebook? (5)


01-02-2013 12:55 AM #1 sean83 (Member)
Is this how you setup prosper keywords for facebook?

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.

Code:
https://www.facebook.com/mytabpage/app_skfjaslkfj?t202id=661&t202kw=CPGN1
Did i need to put the brackets around the keyword for it to work?


01-02-2013 01:49 AM #2 zeno (Administrator)

Passing tracking data into FB fanpages is not at all that simple. See here: http://stmforum.com/forum/showthread...on-on-Tracking


01-02-2013 04:56 AM #3 sean83 (Member)

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?


01-02-2013 06:33 AM #4 zeno (Administrator)

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]


01-02-2013 06:45 AM #5 sean83 (Member)

Zeno, I've PM'd you.


Home > Paid Traffic Sources > Facebook & Instagram