Facebook Open Platform 部分搭建成功。

来源:互联网 发布:余潇潇淘宝店铺叫什么 编辑:程序博客网 时间:2024/05/15 16:42

fbml需要编译所以没有弄,只弄了下访问API。

 

参照那篇文章,http://blog.csdn.net/lmss82/archive/2010/02/02/5282751.aspx   然后倒弄了一下午终于看到结果了,不容易呀。

 

以下是输出结果

--------------------------------------------------------------------------------------------------------------

 

http://localhost/Facebook/html/fbopentest/apitest.php?fb_sig_in_iframe=1&fb_sig_request_method=GET&fb_sig_time=1265111682.1336&fb_sig_added=1&fb_sig_user=1240077&fb_sig_session_key=acacbdbd010123237878dede-1240077&fb_sig_expires=0&fb_sig_friends=&fb_sig_api_key=36924e87ea34bde6f1600b579c1ab6a1&fb_sig=aa142bb16abbcf54122fa2ee8730e556

 

 

Callback requested with GET: params:

Array
(
[fb_sig_in_iframe] => 1
[fb_sig_request_method] => GET
[fb_sig_time] => 1265111682.1336
[fb_sig_added] => 1
[fb_sig_user] => 1240077
[fb_sig_session_key] => acacbdbd010123237878dede-1240077
[fb_sig_expires] => 0
[fb_sig_friends] =>
[fb_sig_api_key] => 36924e87ea34bde6f1600b579c1ab6a1
[fb_sig] => aa142bb16abbcf54122fa2ee8730e556
)

Callback requested with POST: params: Array
(
)


METHOD: users_getLoggedInUser
1240077

METHOD: admin_setAppProperties
1

METHOD: admin_getAppProperties
Array
(
[application_name] => FBOPENTEST
[callback_url] => http://localhost/Facebook/html/fbopentest/
[post_install_url] => http://localhost/Facebook/html/fbopentest/postadd.php
[edit_url] => http://localhost/Facebook/html/fbopentest/edit.php
[dashboard_url] => http://localhost/Facebook/html/fbopentest/sidenav.php
[uninstall_url] => http://localhost/Facebook/html/fbopentest/postremove.php
[ip_list] =>
[email] => nobody@nowhere.com
[description] => Facebook Open Platform test application. Enjoy.
[use_iframe] => 0
[desktop] => 0
[is_mobile] => 0
[default_fbml] => Hello at UTC1265125976
[default_action_fbml] =>
[default_column] => 0
[message_url] =>
[message_action] =>
[about_url] =>
[private_install] => 0
[installable] => 0
[privacy_url] => http://localhost/Facebook/html/fbopentest/privacy.php
[help_url] => http://localhost/Facebook/html/fbopentest/help.php
[see_all_url] =>
[tos_url] => http://localhost/Facebook/html/fbopentest/mytos.php
[dev_mode] => 1
[preload_fql] =>
[contact_email] => nobody@nowhere.com
)

METHOD: application_getPublicInfo
Array
(
[app_id] => 1234567
[api_key] => 0123456789abcdef0123456789abcdef
[canvas_name] => fbopentest
[display_name] => FBOPENTEST
[icon_url] => http://localhost/Facebook/images/icons/hidden.gif?1173653025
[logo_url] => http://localhost/Facebook/gpic/missing_app_icon.gif?1180043296
[developers] => Array
(
[0] => Array
(
[uid] => 1240077
[name] => Mary Smith
)

)

[company_name] => Facebook Open Platform
[description] => Facebook Open Platform test application. Enjoy.
)

METHOD: auth_createToken
4580d5d0aa5fd6622d28ae3c326630a9

METHOD: auth_getSession
Array
(
[session_key] => acacbdbd010123237878dede-1240077
[uid] => 1240077
[expires] => 2147604267
)

METHOD: friends_areFriends
Array
(
[0] => Array
(
[uid1] => 1240078
[uid2] => 1240077
[are_friends] => 1
)

[1] => Array
(
[uid1] => 1240079
[uid2] => 1240080
[are_friends] => 0
)

)

METHOD: friends_get
array(1) {
[0]=>
string(0) ""
}

METHOD: friends_get with list
array(1) {
[0]=>
string(0) ""
}

METHOD: friends_getAppUsers
Array
(
[0] => 1240078
)

METHOD: friends_getLists
Array
(
[0] => Array
(
[flid] => 98765
[name] => A List of One
)

[1] => Array
(
[flid] => 123456
[name] => Student Underground
)

)

METHOD: profile_setFBML
1

METHOD: profile_getFBML
Hello!  Here's some fbml:  at UTC 1265125977

METHOD: users_getInfo
Array
(
[0] => Array
(
[uid] => 1240077
[about_me] => This field perpetuates the glorification of the ego. Also, it has a character limit.
[activities] => running,biking
[affiliations] => Array
(
[0] => Array
(
[nid] => 12345
[name] => College University
[type] => college
[status] => Alumnus/Alumna
[year] => 2003
)

[1] => Array
(
[nid] => 23456
[name] => Facebook Developers
[type] => work
[status] =>
[year] => 2008
)

)

[birthday] => 11-03-1980
[books] => The Brothers K, GEB, Ken Wilber, Zen and the Art, Fitzgerald
[current_location] => Array
(
[city] => San Francisco
[state] => California
[country] => United States
[zip] => 94110
)

[education_history] => Array
(
[0] => Array
(
[year] => 2003
[concentrations] => Array
(
[0] => Applied Mathematics
[1] => Computer Science
)

[degree] => BA
)

[1] => Array
(
[year] => 2004
[concentrations] => Array
(
[0] => French
)

[degree] => MS
)

)

[first_name] => Mary
[hometown_location] => Array
(
[city] => York
[state] => Pennsylvania
[country] => United States
[zip] => 94110
)

[has_added_app] => 1
[hs_info] => Array
(
[hs1_name] => Kennedy High School
[hs2_name] =>
[grad_year] => 1999
[hs1_id] => 2035
[hs2_id] => 0
)

[interests] => coffee, computers, writing
[is_app_user] => 1
[last_name] => Smith
[meeting_for] => Array
(
[0] => Friendship
[1] => Dating
)

[meeting_sex] => Array
(
[0] => Male
)

[movies] => Tommy Boy, Billy Madison, My Blue Heaven, Fight Club, Dirty Work
[music] => New Found Glory, Daft Punk, Weezer
[name] => Mary Smith
[notes_count] => 123
[pic] => http://www.picturesite.com/pic.jpg
[pic_big] => http://www.picturesite.com/big.jpg
[pic_small] => http://www.picturesite.com/small.jpg
[pic_square] => http://www.picturesite.com/square.jpg
[political] => Moderate
[profile_update_time] => 123456
[quotes] => What, me worry? -- Alfred E. Neuman
[relationship_status] => In A Relationship
[religion] =>
[sex] => Female
[significant_other_id] => 1240079
[status] =>
[timezone] => -8
[tv] => cf. Bob Trahan
[wall_count] => 123456
[work_history] => Array
(
[0] => Array
(
[company_name] => Boeing
[position] => Aerospace Engineer, Zepplin division
[description] => Kissing the sky
[start_date] => 04-01-2006
[end_date] => 09-06-2006
)

[1] => Array
(
[company_name] => Facebook
[position] => Software Engineer, Zepplin division
[description] => Being typecast
[start_date] => 09-30-2006
[end_date] =>
)

)

)

[1] => Array
(
[uid] => 1240079
[about_me] => This field perpetuates the glorification of the ego. Also, it has a character limit.
[activities] => running,biking
[affiliations] => Array
(
[0] => Array
(
[nid] => 23456
[name] => Facebook Developers
[type] => work
[status] =>
[year] => 2007
)

)

[birthday] => 11-03-1980
[books] => The Brothers K, GEB, Ken Wilber, Zen and the Art, Fitzgerald
[current_location] => Array
(
[city] => San Francisco
[state] => California
[country] => United States
[zip] => 94110
)

[education_history] => Array
(
[0] => Array
(
[year] => 2003
[concentrations] => Array
(
[0] => Applied Mathematics
[1] => Computer Science
)

[degree] => BA
)

[1] => Array
(
[year] => 2004
[concentrations] => Array
(
[0] => French
)

[degree] => MS
)

)

[first_name] => Roger
[hometown_location] => Array
(
[city] => York
[state] => Pennsylvania
[country] => United States
[zip] => 94110
)

[has_added_app] => 0
[hs_info] => Array
(
[hs1_name] => Kennedy High School
[hs2_name] =>
[grad_year] => 1999
[hs1_id] => 2035
[hs2_id] => 0
)

[interests] => coffee, computers, writing
[is_app_user] => 1
[last_name] => Jones
[meeting_for] => Array
(
[0] => Friendship
[1] => Dating
)

[meeting_sex] => Array
(
[0] => Male
)

[movies] => Tommy Boy, Billy Madison, My Blue Heaven, Fight Club, Dirty Work
[music] => New Found Glory, Daft Punk, Weezer
[name] => Roger Jones
[notes_count] => 123
[pic] => http://www.picturesite.com/pic.jpg
[pic_big] => http://www.picturesite.com/big.jpg
[pic_small] => http://www.picturesite.com/small.jpg
[pic_square] => http://www.picturesite.com/square.jpg
[political] => Moderate
[profile_update_time] => 123456
[quotes] => What, me worry? -- Alfred E. Neuman
[relationship_status] => In A Relationship
[religion] =>
[sex] => Female
[significant_other_id] => 1240079
[status] =>
[timezone] => -8
[tv] => cf. Bob Trahan
[wall_count] => 123456
[work_history] => Array
(
[0] => Array
(
[company_name] => Boeing
[position] => Aerospace Engineer, Zepplin division
[description] => Kissing the sky
[start_date] => 04-01-2006
[end_date] => 09-06-2006
)

[1] => Array
(
[company_name] => Facebook
[position] => Software Engineer, Zepplin division
[description] => Being typecast
[start_date] => 09-30-2006
[end_date] =>
)

)

)

)

METHOD: users_getLoggedInUser
1240077

METHOD: users_isAppAdded
1

METHOD: batch_run
object(FacebookRestClientException)#3 (6) {
["message:protected"]=>
string(14) "Unknown method"
["string:private"]=>
string(0) ""
["code:protected"]=>
int(3)
["file:protected"]=>
string(115) "D:/APMServ5.2.6/www/htdocs/Facebook/html/fbopentest/demo_libs/facebook-platform/client/facebookapi_php5_restlib.php"
["line:protected"]=>
int(178)
["trace:private"]=>
array(2) {
[0]=>
array(6) {
["file"]=>
string(115) "D:/APMServ5.2.6/www/htdocs/Facebook/html/fbopentest/demo_libs/facebook-platform/client/facebookapi_php5_restlib.php"
["line"]=>
int(152)
["function"]=>
string(25) "execute_server_side_batch"
["class"]=>
string(18) "FacebookRestClient"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[1]=>
array(6) {
["file"]=>
string(63) "D:/APMServ5.2.6/www/htdocs/Facebook/html/fbopentest/apitest.php"
["line"]=>
int(242)
["function"]=>
string(9) "end_batch"
["class"]=>
string(18) "FacebookRestClient"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
}
GOT EXCEPTION
METHOD: fql_query

METHOD: feed_publishStoryToUser

METHOD: feed_publishActionOfUser
原创粉丝点击