codebird-php icon indicating copy to clipboard operation
codebird-php copied to clipboard

Do not get the url of the third part website , when a post is shared from it.

Open Majid-ali37 opened this issue 6 years ago • 5 comments

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.

Majid-ali37 avatar Sep 25 '18 06:09 Majid-ali37

Please resolve my issue ASAP

Majid-ali37 avatar Sep 25 '18 06:09 Majid-ali37

@Majid-ali37 Thanks for your question – please share the relevant part of your code and we may take a closer look.

mynetx avatar Sep 25 '18 10:09 mynetx

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 "

";`

Majid-ali37 avatar Sep 25 '18 11:09 Majid-ali37

@joshuaatkins I would like you to take a look at this one, please.

mynetx avatar Sep 25 '18 13:09 mynetx

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.

bobbykjack avatar Jan 21 '19 10:01 bobbykjack