Step 2: Authenticate Users
In order to publish Open Graph Actions for users, your app needs to prompt users withpublish_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.
Salam by Team Aplikasi Facebook free ALfuadi ALfaeL Devanton ALdiAzzuhdi Adam SH Poanri wahidah
- DOWNLOAD SOFTWARE KLIK DISINI
- TUTORIAL DENGAN VIDEO KLIK DISINI
- WEB JOOMLA KOMUNITAS KLIK DI SINI
- GABUNG KOMUNITAS FaceBook WEBMATRIX KLIK DISINI
- SITUS JEJARING WEB MATRIX KLIK DISINI
- SITUS WEB MATRIX KLIK DISNI
- WEB JOOMLA KOMUNITAS KLIK DI SINI
- GABUNG KOMUNITAS APLIKASI FaceBook FREE KLIK DISINI
- SITUS JEJARING APLIKASI FACEBOOK FREE KLIK DISINI