Wednesday, October 19, 2011

How to get around Facebook issue : 240037952714577

Facebook reported issue :
http://developers.facebook.com/bugs/240037952714577

Here is the solution to get around facebook issue #240037952714577.
"Application cannot be added as a Page Tab on its own profile page"

1 - First of all, you need to be in HTTP mode (not HTTPS), to be able to see the POST request arguments.

2 - Then you need a "HTTP Monitor / Reverse" tool like "Charles Web Debugging Proxy" that let you edit requests and re-execute them.

3 - Configure your Browser like Firefox to let all requests goes through "Charles Proxy" (127.0.0.1 port 8888)... you should now see all your HTTP requests in "Charles".

4 - Now, go to facebook (only for developer profile) on your "Application Page", and click on "Add to My Page", you should see the popin showing all available "Fan Page" only (no application pages are showed, this is the issue)

5 - clean the Charles Proxy view to remove all previous requests, and now click on any "Add to Page", you should see the request in "Charles". Something like : http://www.facebook.com/ajax/apps/add_to_profile.php?__a=1

6 - In Charles, right click on the request and choose "Edit", Charles will allow you to edit the POST form (in the Form tab).

7 - Now, you only need to change the parameter value of "target_profile_id" and/or "profile_id".
"target_profile_id" is the page on which you want to install the "tab page"
"profile_id" is the application (or tab) you want to install.
For instance, if you want to install an application on its own application page, "target_profile_id" will be equal to "profile_id".

8 - And obviously, you execute the request. And reload your application page.

Please let me know, if this helps you. Thanks !

+++
alexandre

No comments: