What are Facebook Application "profile.setFBML" FBML Arguments?

Ok, so I read the documentation and I'm not entirely sure what arguments are passed. I am reviewing the provided example request:

$facebook->api_client->profile_setFBML(NULL, 128009, 'profile', NULL, 'mobile_profile', 'profile_main');

and thinking where do they get these arguments and what do they do?

Anyone have an explanation?

+1


source to share


2 answers


This is for the PHP library, other libraries may have their own syntax.

$facebook->api_client->profile_setFBML(session_key, uid, 'profile', 'profile_action', 'mobile_profile', 'profile_main');

      

session_key is the session key of the user whose FBML you are installing. It is required for web applications only when the uid is not specified, and therefore NULL is valid in the example provided.

uid . User ID for the user whose profile you are updating, or the page ID in the case of a page. If this parameter is not specified, it defaults to the session user.



profile . FBML is for the application profile window, which is displayed on the "Boxes" tab in the user profile.

mobile_profile . FBML is for mobile devices.

profile_action . Deprecated and therefore NULL in the example provided.

profile_main . FBML is for a narrow profile window on the Wall and Info tabs of the user profile.

+2


source


Sorry, but at the beginning there are 4 required parameters: api_key, call_id, sig and v. Why shouldn't an example be passed on?



0


source







All Articles