Home » , » Cara buat aplikasi di facebook part 2 By Team aplikasi facebookfree

Cara buat aplikasi di facebook part 2 By Team aplikasi facebookfree

Written By Nusantara Voice on Friday, January 13, 2012 | 10:13 AM


Step 2: Authenticate Users

In order to publish Open Graph Actions for users, your app needs to prompt users with publish_actions permission. You can use the Add to Timeline plugin, which automatically prompts the user for this permission.
Here is some code, using the JavaScript SDK, to help you get started right way. Make sure to update with YOUR_APP_ID and the sample image URL.
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
     xmlns:fb="https://www.facebook.com/2008/fbml"> 
<head>
<head/> 
<body> 
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
    FB.init({ 
        appId:'YOUR_APP_ID', cookie:true, 
        status:true, xfbml:true, oauth:true
    });
</script>

<fb:add-to-timeline></fb:add-to-timeline>

<h3>
    <font size="30" face="verdana" color="grey">
        Stuffed Cookies
    </font> 
</h3> 
<p>
    <img title="Stuffed Cookies" 
            src="http://example.com/cookie.jpg" 
            width="550"/>
</p>       
</body> 
</html>
You'll notice that your plugin may generate a relatively empty preview and clicking the Add to Timeline button generates an empty permission dialog.

To populate the Auth Dialog and the Add to Timeline plugin with app specific info, refer to the Auth Dialog guide.

Indonesia Versi :

Dalam rangka untuk mempublikasikan Tindakan Grafik Terbuka bagi pengguna, aplikasi Anda harus meminta pengguna dengan izin publish_actions. Anda dapat menggunakan Tambahkan ke plugin Timeline, yang secara otomatis meminta pengguna untuk izin ini.

Berikut adalah beberapa kode, menggunakan SDK JavaScript, untuk membantu Anda memulai cara yang benar. Pastikan untuk mengupdate dengan YOUR_APP_ID dan URL gambar sampel.

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
     xmlns:fb="https://www.facebook.com/2008/fbml"> 
<head>
<head/> 
<body> 
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
    FB.init({ 
        appId:'YOUR_APP_ID', cookie:true, 
        status:true, xfbml:true, oauth:true
    });
</script>

<fb:add-to-timeline></fb:add-to-timeline>

<h3>
    <font size="30" face="verdana" color="grey">
        Stuffed Cookies
    </font> 
</h3> 
<p>
    <img title="Stuffed Cookies" 
            src="http://example.com/cookie.jpg" 
            width="550"/>
</p>       
</body> 
</html>
Anda akan melihat bahwa plugin Anda dapat menghasilkan preview yang relatif kosong dan klik tombol Add to Timeline menghasilkan dialog izin kosong.
Untuk mengisi Dialog Tupoksi dan Add ke plugin Timeline dengan info aplikasi tertentu, lihat panduan Dialog Auth.

Salam by Team Aplikasi Facebook free ALfuadi ALfaeL Devanton ALdiAzzuhdi Adam SH Poanri wahidah

  • GABUNG KOMUNITAS APLIKASI FaceBook FREE KLIK DISINI 
  • SITUS JEJARING APLIKASI FACEBOOK FREE KLIK DISINI  

Share this article :
Comments
0 Comments

Post a Comment

 
Support : Web Master | webbmatrix | Media Islamic
Copyright © 2010. Aplikasi Facebook Twitter Software Ebook Free - All Rights Reserved
Web master Media news Published by Jurnalis Rakyat.com
Proudly powered by Google