小编J.D*_*Doo的帖子

FacebookRequest :: execute()不包含在facebook sdk中

下载facebook sdk for php后我尝试运行以下内容.代码是:

    function QueryToRetrieveUserThroughID(string $id) {

        $newFacebookApp = new Facebook\FacebookApp(app-id, app-secret);
        $request = new Facebook\FacebookRequest(
                $newFacebookApp, 'GET', '/' . $id
        );
         $response = $request->execute();
        $graphObject = $request->getGraphObject(); 
   }
Run Code Online (Sandbox Code Playgroud)

虽然到达$response = $request->execute();生产线时:

Fatal error: Uncaught Error: Call to undefined method Facebook\FacebookRequest::execute()
Run Code Online (Sandbox Code Playgroud)

我在这里做错了如何使用API​​的想法或者确实FacebookRequest :: execute不存在?

php facebook facebook-graph-api

6
推荐指数
1
解决办法
2623
查看次数

行首的分号 - 批处理

我对批处理编程很陌生。我发现这里提到的节目在这里的“Makecab”的接受的答案的一部分。我在这里插入它:

;@echo off

;;;;; rem start of the batch part  ;;;;;
; if "%~2" EQU "" (
;   echo invalid arguments.For help use:
;   echo %~nx0 /h
;)
;for %%a in (/h /help -h -help) do ( 
;   if "%~1" equ "%%~a" (
;       echo compressing directory to cab file  
;       echo %~nx0 directory cabfile
;       echo to uncompress use:
;       echo EXPAND cabfile -F:* .
;   )
; )
;
; set "dir_to_cab=%~f1"
;
; set "path_to_dir=%~pn1" …
Run Code Online (Sandbox Code Playgroud)

batch-file

5
推荐指数
1
解决办法
2211
查看次数

标签 统计

batch-file ×1

facebook ×1

facebook-graph-api ×1

php ×1