Getting a (Ref) Handle on FBML
Problem
I want to put some FBML into Facebook’s cache so that I can use it in a whole bunch of user Profiles.
Solution
Use the FBML.setRefHandle()
method:
$return = $facebook->api_client->fbml_setRefHandle('myHandle','FBML goes here');
Discussion
This will associate the handle
you pass as the first parameter with
the FBML content that you pass in the second one. You can then pull
this content at any time using the fb:ref
FBML tag (see FBML Caching for more info).
This can be used only by web-based Facebook apps. Desktop apps are out of luck on this one.
Get Facebook Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.