I am trying to post a .swf
using PHP SDK 5.2. I have tried a few methods.
For example:
$linkData = [
'type'=> "video",
'source'=> "https://mysite/my_file.swf",
'name'=> $_GET['message1'],
'caption'=> $_GET['caption'],
'description'=> $_GET['message2'],
'message' => $_GET['message3']
];
try {
$response = $fb->post('/me/feed', $linkData, $user->access_token);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
$this->ueoutputs['errors'][] = $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
$this->ueoutputs['errors'][] = $e->getMessage();
exit;
}
it gives me a Facebook\Exceptions\FacebookResponseException
:
Template data must be a JSON-encoded dictionary, of the form {'key-1': 'value-1', 'key-2': 'value-2', ...}
How to solve this?