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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -