Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Majid-ali37 opened this issue Sep 25, 2018 · 5 comments
Assignees

Comments

@Majid-ali37
Copy link

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
Copy link
Author

Please resolve my issue ASAP

@mynetx
Copy link
Member

mynetx commented Sep 25, 2018

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

@Majid-ali37
Copy link
Author

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 "

";`

@mynetx
Copy link
Member

mynetx commented Sep 25, 2018

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

@bobbykjack
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants