codebird-php
codebird-php copied to clipboard
Do not get the url of the third part website , when a post is shared from it.
I shared a post from a third party blog website to my twitter account and it didn't returned the link to that actual post on its website, in the response. I needed it to pull meta from that website's page from which the post has been shared, just like twitter do.
Please resolve my issue ASAP
@Majid-ali37 Thanks for your question – please share the relevant part of your code and we may take a closer look.
Ok I'm using this code to retrieve my tweets, everything is working perfect except for the third party url from which I shared a post. For example , I shared a post from quora.com website to my twitter handle, it was shared to my twitter tweets , but the url ( I need to extract the meta of website from which the blog was shared i.e quora as twitter do ) of that website (quora.com) was found no where in the response. here is my code. ` require_once (path_to_codebird_lib/codebird-php-develop/src/codebird.php'); function tweets(){
\Codebird\Codebird::setConsumerKey(CONSUMER_KEY, API_SECRET); // static, see README
$cb = \Codebird\Codebird::getInstance();
$cb->setToken(ACCESS_TOKEN,ACCESS_TOKEN_SECRET); // see above
$reply = (array) $cb->statuses_userTimeline(); echo "
"; print_r($reply); echo "
";`
@joshuaatkins I would like you to take a look at this one, please.
FWIW, I'm using 3.1.0 and I am getting the 'source' attribute of a tweet as expected, when using the statuses_userTimeline() method.