20-01-12, 17:33 | # 1 |
חבר מתקדם
|
עזרה , API של FACEBOOK
שלום רב ,
אשמח לקבל עזרה בנוגע ל API של פייסבוק אני מנסה לבדוק האם עשו לייק לקבוצה . הקוד: PHP קוד:
__________________
|
20-01-12, 23:15 | # 2 |
מנהל פורום, עסק רשום
|
אני בספק שהסוג של resp הוא בוליאני.
כמעט בטוח שזה איזשהו אובייקט. נסה להדפיס אותו לקונסול ולראות מה יש באובייקט המוחזר. |
20-01-12, 23:27 | # 3 |
חבר וותיק
|
אני לא בדקתי, אבל זה אמור לפעול:
HTML קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="he" lang="he" dir="rtl"> <head> <script type="text/javascript"> $(document).ready(function() { window.fbAsyncInit = function() { FB.init({status: true, cookie: true, xfbml: true}); FB.Event.subscribe('edge.create', function(href, widget) { setCookie('hotmovieVideoGroupLike' + encode64(href), 'truer', 370); $("#MoviePlayerPlayer").css("display","block"); }); FB.Event.subscribe('edge.remove', function(href, widget) { setCookie('hotmovieVideoGroupLike' + encode64(href), 'falser', 0); $("#MoviePlayerPlayer").css("display","none"); }); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/he_IL/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); }); </script> </head> <body> <div id='fb-root'></div> <fb:like href="URL" send="false" width="550" show_faces="false"></fb:like> </body> </html> |
21-01-12, 01:49 | # 4 | |
עסק רשום [?]
|
ציטוט:
Last edited by אביב; 21-01-12 at 02:24.. |
|
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|