(# 322) Topic is not allowed to tag this photo - Facebook PHP SDK v4
I am trying to use a single person tag on my facebook fan page using PHP PHP SDK v4
$args = array();
$args['access_token'] = $page_info['access_token'];
$args['message'] = $data['message'];
$args['url'] = $data['src_big']['source'];
$post = (new FacebookRequest($session, 'POST', "/$page_id/photos", $args))->execute()->getGraphObject()->asArray();
var_dump($post);
Photo published successfully.
But when I try to add a tag
$tag = (new FacebookRequest($session, 'POST', "/{$post['id']}/tags/{$data['from']['id']}"))->execute()->getGraphObject()->asArray();
it returns
(# 322) Subjects are not allowed to tag this photo
even the array of tags doesn't work.
$args['tags'] = array( array( 'tag_uid' => $data['from']['id'], 'x' => 0, 'y' => 0 ) );
This return
Tagsparam must be an array.
I have no idea how to do this. Please help me with this.
+3
source to share