1
I am trying to send Notification to the User , when certain event gets hit .

我已使用以下代码发送通知,但出现错误。请让我知道我在哪里做错了

代码:

$fb_response = $facebook->api( '/' . $user_id . '/notifications', 'POST', array( 'access_token' => $facebook->getAppId() . '|' . $facebook->getApiSecret(), 'href' => "My_facebook_app_URL", 'template' => "My Message", ));

错误:

FacebookApiException Object
(
    [result:protected] => Array
        (
            [error] => Array
                (
                    [message] => (#10) Notification send blocked.
                    [type] => OAuthException
                    [code] => 10
                )

        )

    [message:protected] => (#10) Notification send blocked.
    [string:private] => 
    [code:protected] => 0
4

1 回答 1

1

尝试

$facebook->getAppSecret()

代替

$facebook->getApiSecret()

也许?

于 2013-08-30T10:42:21.393 回答