Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1158 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Marketplace     Services Offered / Looking to Hire :

Facebook API - Directly write message to Profile Box

Thread title: Facebook API - Directly write message to Profile Box
Closed Thread    
    Thread tools Search this thread Display Modes  
09-24-2008, 01:49 AM
#1
Emily0415 is offline Emily0415
Status: Member
Join date: Jun 2008
Location: Canada
Expertise:
Software:
 
Posts: 113
iTrader: 0 / 0%
 

Emily0415 is on a distinguished road

  Old  Facebook API - Directly write message to Profile Box

Buyer: chen8090 Contact Buyer Time of Post: Sep 22, 2008 22:03 (U.S. Eastern Time)
Job Budget: $50 Bids/ Views: 0 / 73

Time Remaining: 14d 1h 16m (ends Oct 07, 2008 22:03 U.S. Eastern Time)


Job Description
This is from facebook example, mysmiley
http://apps.new.facebook.com/mysmiley/

The current example displays "Add to Profile" button. Once user clicks the button,
it pops up a window to ask "Add" to Wall or Box tab.

My application is in iFrame, I have worked out to not use FBML and use the
JavaScript here.

Could you make it totally automatic in iFrame (NO FBML)?
No "Add to Profile" button, just directly put the message into the Profile Box tab.

If so, work on your environment and write a PPT step-by-step detailed description with
screen shots.

The following codes are combination of smiley/index.php and smiley/iframe/index.php

<?php
$message = "Updated News Here Soon";
$fb->api_client->profile_setFBML(null, $user, $message, null, null, $message);
?>

Click the button to add news box in your profile.

window.onload = function() {
FB_RequireFeatures([&quot;Integration&quot;], function() {
FB.Facebook.init('<?php echo API_KEY;?>', 'receiver.html', null);
FB.Integration.showAddSectionButton(&quot;profile& quot;, document.getElementById("addSection"));})};

$fb = get_fb();
$user = $fb->require_login();

$profile = "my message here";
$profile_wall = $profile;
$profile_box = $profile;
$fb->api_client->profile_setFBML(null, $user, $profile_wall, null, null, $profile_box);
?>

<html>
<head>
<!-- Put these in the head of your document to use these features-->
<link rel="stylesheet" href="http://static.ak.new.facebook.com/css/fb_connect.css" type="text/css" />
<script src="http://static.ak.new.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
</head>

<br>
Click the button to add news box in your profile.
<P>
<div id="addSection"></div>
<br>

<script type="text/javascript">

window.onload = function() {
FB_RequireFeatures(["Integration"], function() {

FB.Facebook.init('<?php echo API_KEY;?>','receiver.html', null);

// These two lines add a "add to profile" button under the given id.
FB.Integration.showAddSectionButton("profile", document.getElementById("addSection"));
})};
</script>

more infor go to http://www.mytino.com/jobs/job_details.php?id=2102

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed