php - Facebook SDK 5 post with byline -


i've got facebook sdk working auto post blog posts facebook page, can't seem post byline/author appear.

if share url directly page, the article author show up, doesn't sdk.

the docs show variety of variables can send, no examples or more information. 2 options promising admin_creator or from.

admin_creator says requires object[] id , name no examples show , how pass api. i've tried doesn't work (such profile id , profile name), , from i've tried passing profile id no avail.

if has done can help? thanks!

sdk docs ref: https://developers.facebook.com/docs/graph-api/reference/v2.8/post/

shared manually:

shared manually

via sdk:

via sdk

does metatag "author" exist in articles? try use object debugger (https://developers.facebook.com/tools/debug/og/object/) , check if "author"'s name comes out. if not, first thing understand why doesn't appear.

option 1: missed metatag in code.

<meta name="author" content="your name"> 

you can add these metatags. first 1 explicit object type (article) while second 1 links author's name url (like fb's profile page):

<meta property="og:type" content="article"/> <meta property="article:author" content="yourlink.com"/> 

option 2: if you're using these metatags may have cache problem. sure facebook spider's can read metatags? maybe exposing version of article misses metatags?


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -