我想这样做:
$string = "";
$string += "lol"; //maybe =+ > tried but both not working
Run Code Online (Sandbox Code Playgroud)
但它不起作用,有人建议吗?谷歌并没有让我的生活轻松(无法搜索像=或+这样的字符)
我正在尝试使用 fb graph api、php sdk 从 facebook 群组获取帖子。我可以从管理员组获取帖子,但是当我尝试从成员位置获取帖子时,它会返回错误
Graph returned an error: (#200) Requires either admin permissions or member using installed app.
Run Code Online (Sandbox Code Playgroud)
这是代码
try {
$postsdata= $fb->get('/6999406078/feed?limit=5&$accessToken='.APP_ID.'|'.APP_SECRET);
$posts= $requestGroups->getGraphEdge()->asArray();
} catch(Facebook\Exceptions\FacebookResponseException $e) {
// When Graph returns an error
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
// When validation fails or other local issues
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$i =0;
foreach ($posts as $key) {
$i++;
echo" …Run Code Online (Sandbox Code Playgroud)