我需要转储应用程序用户的一些信息我正在使用此代码!
$fbme = $facebook->api('/me');
$str = $fbme['name'].' '.$fbme['sex'].' '.$fbme['hometown_location'].' '.$fbme['profile_url'].'\r\n';
$fp = fopen("data.txt", "w");
fwrite($fp, $str);
fclose($fp);
Run Code Online (Sandbox Code Playgroud)
但这只显示名称,没有别的!为什么?
我目前正在使用JS SDK和PHP SDK.我需要一种简单的方法来显示所有朋友的名字和朋友的照片.
我可以用这个显示图片:
https://graph.facebook.com/zuck/picture
Run Code Online (Sandbox Code Playgroud)
但我不知道如何显示名称.
在我的应用程序上,我有一个使用用户的facebook"user_friends"权限的功能.它曾经在升级到API V.2.0之前工作,但现在却没有:当我在FB上创建应用程序并使用测试用户时(在开发模式下),我的功能包括此权限.但是,当我打开应用程序(现场)时 - 它不起作用.所以 - 它适用于测试用户,但不适用于Live用户.怎么可能?
facebook facebook-graph-api facebook-php-sdk facebook-permissions
我正在创建一个Facebook应用程序,用于使用Facebook PHP SDK列出所有用户收件箱消息.
我用这段代码来获取用户的所有照片.
<?php
$facebook->api('/me/albums');
?>
Run Code Online (Sandbox Code Playgroud)
如何获取所有用户的收件箱消息?
我正在尝试在Facebook上获取我的团队的Flash项目,但我无法使用任何PHP-SDK示例.我已经按照几个例子,比如github上的这个新例子(这里).但是,我一直得到一个解析错误:
解析错误:语法错误,第36行的/home/content/r/a/s/rashomon/html/projects/facebook/test/hellomyflash/index.php中的意外"{"
我下载了最新的PHP-SDK.这是我的文件结构:
.../hellomyflash/
index.php
src/base_facebook.php
src/facebook.php
src/fb_ca_chain_bundle.crt
Run Code Online (Sandbox Code Playgroud)
我在index.php中改变的唯一两行是appId和secret.
index.php:
<?php
/**
* Copyright 2011 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" …Run Code Online (Sandbox Code Playgroud) 我正在使用 heroku 来部署我的 php facebook 应用程序。facebook sdk 使用 curl。heroku 中是否启用了 curl?如果没有,那么我如何在那里启用 curl ?
是否有可能为粉丝页的管理员创建一个facebook应用程序,当特定粉丝或粉丝生日时,它们具有在墙上发布生日祝福的功能?
javascript php facebook facebook-javascript-sdk facebook-php-sdk