目前分類:facebook (34)

瀏覽方式: 標題列表 簡短摘要

SELECT uid, name, work_history FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 IN (SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) and is_app_user=1))


shadow 發表在 痞客邦 PIXNET 留言(1) 人氣()

SELECT uid FROM user WHERE uid IN ( SELECT recipient_uid FROM apprequest WHERE recipient_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND app_id = YOUR_APP_ID)
再來統計 data 有幾筆即可 如果要做成可以針對不同活動,查詢各活動各邀請了多少好友,可以在「邀請」時在 data 參數加上 keyword 那麼只要稍微改一下FQL,如下即可 SELECT uid FROM user WHERE uid IN ( SELECT recipient_uid FROM apprequest WHERE recipient_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND app_id = YOUR_APP_ID AND data = ‘KEYWORD’)
 

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

javascript:
window.fbAsyncInit = function() {
// init the FB JS SDK

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

void Main()
{

 

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1.首先要先有一組Facebook帳號,並且登入Facebook

 

2.連結到 Facebook開發人員 頁面 HTTPs://developers.facebook.com/

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

透過 FQL 查詢
SELECT read_stream,offline_access,publish_stream FROM permissions WHERE uid=me()

 

shadow 發表在 痞客邦 PIXNET 留言(1) 人氣()

package study

{

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

  • facebook keeps a record of every message that you send over their chat system
  • Facebook scans your chats with their software and targets ads to you based on what you talk about with your friends
  • Facebook has agreed to hand over any chat transcripts if the government requests them.

From the makers of the Do Not Track plugin they have made this crypto solution for facebook which seems fairly simple

Using Css and javascript in your bookmarks to encrypt facebook conversations

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. 在「文章簽名檔」的編輯區塊使用原始碼檢視並加入以下的 code
<iframe id="fbLike" scrolling="no" frameborder="0" src="" style="border: medium none; overflow: hidden; width: 450px; height: 65px;" allowtransparency="true"></iframe>
<a href="HTTP://www.facebook.com/sharer.php" type="button_count" name="fb_share">分享</a>

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

http://developers.facebook.com/opensource/

http://mirror.facebook.net/


shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

建立一個HELLO WORLD外掛程式:

 

1. 進入開發者首頁 HTTP://developers.facebook.com/

shadow 發表在 痞客邦 PIXNET 留言(1) 人氣()

FB.getLoginStatus(function (response) {

 

//目前若是與FB連結的狀態

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

function result_publish() {
FB.ui(
{

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

<?php

require_once 'facebook.php';

$appapikey = '1111111111111111111111111';

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

One of the best things to happen in Facebook development lately was to enable iframe application tabs. This was widely welcomed by developers. However many blog posts wrongly assumed there was a 800 pixel limit on the tab height. Behold, here is the 5000 pixel tab.

New Tab is iFrame Canvas Application New tab works the same way as iframe canvas application. First load the JavaScript SDK. Easiest is to load it synchronously using a script tag (for production you want to load SDK asynchronously since it gives impression of faster loading page).

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FB.api(post_id + '/likes', action, { access_token: user_accessToken }, function(response) {
    alert(response);
});

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

錯誤處理

Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in

C:\AppServ\www\facebook\facebook-php-sdk\src\facebook.php on line

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

<?php //create 1 hour life cookie to prevent duplicate news

feed story.

/*

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

<?php
  $app_id = 'YOUR_APP_ID';
  $app_secret = 'YOUR_APP_SECRET';

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

AB89AFDEE4CCFE4AABAC14D1FAFC0A  

<h1>Link</h1>

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1 2