Facebook Profile Updates
Upcoming SlideShare
Loading in...5
×
 

Facebook Profile Updates

on

  • 7,999 views

 

Statistics

Views

Total Views
7,999
Slideshare-icon Views on SlideShare
7,985
Embed Views
14

Actions

Likes
0
Downloads
31
Comments
1

4 Embeds 14

http://www.slideshare.net 6
http://remarkk.com 5
http://220.227.190.252 2
http://matthew.burpee.ca 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Facebook Profile Updates Facebook Profile Updates Presentation Transcript

    • Part of the Facebook Developer Garage series
    • Profile Security
      • Controlled External Content
        • Consistent presentation
        • User Experience
      • Content Rules
        • No iFrames
        • No auto-run for Flash and Silverlight
      • Caching
        • Profile Boxes are cached
        • Limit load on your server
        • Require explicit update
    • Methods for Profile Update
      • profile_setFBML()‏
        • User access restricted
      • fb:ref
        • URL
        • Handle
    • fb:ref method <fb:ref handle=&quot;HANDLE_HERE&quot; /> or <fb:ref url=&quot; http:// acme.ca/update.php?handle =HANDLE_HERE&quot; /> Then: facebook.fbml.setRefHandle(&quot;HANDLE_HERE&quot;, &quot;FBML_Content&quot;) ‏ or facebook.fbml.refreshRefUrl(&quot; http://acme.ca/update.php?handle = HANDLE_HERE&quot;) ‏ Note: Multiple Handles possible in the profile page, mass updates and 1 to many updates Infinite Session Required
    • Infinite session
      • Maintains an infinite session for the application developer to make updates, required to run:
        • profile_setFBML() ‏
        • facebook.fbml.setRefHandle() ‏
        • facebook.fbml.refreshRefUrl() ‏
      • Note: User's can update their own profiles, infinite session is only require you want to update the profile without them interacting with your application.
    • Get Infinite Session <?php // Include the facebook library config files. $facebook = new Facebook($api_key, $secret); // force a login page $facebook->require_frame(); $user = $facebook->require_login(); // Echo the &quot;infinite session key&quot; that everyone keeps talking about. echo $facebook->api_client->session_key; ?> Note: Logout and go to Callback URL
    • Use Session Key <?php // Include the facebook library config files. $facebook = new Facebook($api_key, $secret); $user = YOUR_FACEBOOK_USER_ID; $key = SESSION_KEY_WE_PROCURED_ABOVE; // Allows &quot;you&quot; to run your script $facebook->set_user($user, $key);