Facebook tab page load app doesn't pass parameter - django

I have an app in a facebook page tab that show some informations and this information must change for every user (ID_USER). I don't know how to load the correct data in the facebook app tab page. My app is a Django app. I've done this step:
1) create an app in my developers account (a page tab application) with this url https://www.exemple.com/ID_USER.
2) load the url https://www.facebook.com/dialog/pagetab?app_id=MY_APP_ID&redirect_uri=www.exemple.com/ID_USER
3) Select in the window the page to install the app
4) I go to the page and I found the app.
The problem is that the app is only for a user and I would like to load the right data for every facebook page the app is installed.
I've read about signed_request and app_data but I don't understand how to set app_data. Canyou help me please?
* EDIT *
The problem seems to be the django internationalization redirect from
https://www.example.com/ID_USER
to
https://www.example.com/en/ID_USER
in my network console I see
302 https://www.example.com/ID_USER (with 'signed_request')
200 https://www.example.com/en/ID_USER (without 'signed_request')
How can I solve this issue?

Related

I can't get Facebook app settings right for a photo upload

I have a vb6 application that creates a jpg image. I need to have the user click on a button to have that image uploaded to her Facebook page. I created a Facebook app and use an api (chilkat) with my vb6 to do the upload. But, I've really been stumbling around trying to get it working. On the Facebook side, what settings should I have to just upload a photo? For example, this runs on Windows PCs... what platform do I designate in my Facebook app??
Also, my current attempts get an error from Facebook saying that "Can't Load URL: The domain of this URL isn't included in the app's domains." I expect this upload to be from the user's PC to Facebook. What URL/domain do they want?
Are there samples of this type of thing that I could check? Thanks - John
New info as of Nov 12 --
I have the Facebook app set as a Website using "localhost" which seems to move me along a bit. But, now I get the error --
"The request is invalid because the app is configured as a desktop app"
Is that telling me my Facebook app is a desktop??... or that my vb6 code says it is a desktop? If I have to change the Facebook platform, it looks like I need a Windows store id? If so, is that just a simple registration (and $19)? Thanks - John

screen scraping a coldfusion page with login screen

I need to screen scrape ( with permission) and intranet website and extract data from the page. This is a cfm application with a login. The user needs to login, make a selection from the dropdown, click on a link and then arrive at the page which needs to be scraped.
I know using cfhttp method = get, will get the contents from the remote url. but how do i handle the login part? and automating the click on the dropdown and click on all the links.
please advice on what can be used to achieve this? TIA

What is the simplest way to create a page tab on the latest version of fb?

All I want to do is create a few pages with sign up forms for our fans and customers on our business facebook page.
I created the new app, named it and went on to the basic settings. From what I can tell I just need to set up the "page tab" info. I Named the tab, put in the page tab url, secure page tab url and uploaded a tab image.
Then I wait for it to show up on our fb page. I refresh the page and for a few seconds it looks like something is being loaded in the list of tabs. But then it stops and the layout of default tabs (photos, likes, and events) are unchanged.
The tab should link to the app url which should load inside of an iframe which will have the html from our web server.
That's how I understand it anyways.
You must add manually the application on your page through this URL: http://www.facebook.com/dialog/pagetab?app_id=APP_ID&redirect_uri=https://www.facebook.com/
Remember to replace APP_ID first.

Facebook Page a Mandatory Step for Entry Submission

I want to make my facebook page like mandatory for submission same as below article but I am not getting where
"Promotion Builder under Application > Integration > Facebook Like Box" is located.
http://support.strutta.com/kb/facebook-integration/how-to-make-liking-my-facebook-page-a-mandatory-step-for-entry-submission
I will find it in Facebook apps settings or page where apps are shown?
Any solution?
Thanks
The setting you are referring to is part of Strutta's web app, not Facebook. Assuming you have an Strutta PRO account, you must login to your account to activate the setting:
http://www.strutta.com/auth/login?destination=account

Facebook iframe app. it is possible refresh when user log out from other browser tab

I have an iframe application.
When a user and another page and log in to facebook site, the application page is reloaded by facebook.
But, I want to reload the page in the logout state also.
Here is the scenario:
A user enters my iframe application and authorizes my app and successfully enters my app.
While using my app, the user opens my app (or fb site) in another browser tab.
The user logs out from facebook site in the last browser tab.
When user logs out from facebook, I want to automatically reload my application page in the browser.
How can I do this?
Have a look at FB.Event.subscribe, I think you should be able to use it to reload the page when the user's session changes.
Add something like this to your FB.init:
FB.Event.subscribe("auth.sessionChange", handleSessionChange);
...and the handleSessionChange callback function would look something like this:
function handleSessionChange(response) {
if(!response.session || response.session.uid!="$user_id"){
window.location.reload();
}
}
Unfortunately, your options are limited as communication with an IFRAME is very constrained. This may help you:
http://www.dyn-web.com/tutorials/iframes/refs.php