Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Well im working on a small php script and i want to make a test to see if the visitor is logged to facebook in his computer using php.
I want to do it in these way:
If (USER IS CONNECTED){echo "yes";}else{echo "no";}
Is it possible? if yes how can i do it ?
There is no documented way to achieve this. The JS is there for a reason (AJAX requests).
The article you're referring to is exploiting redirects after login, and doesn't even work (fails to recognize you're logged into Twitter). Something that starts with "I found a way to abuse" shouldn't be taken into consideration.
That's unethical, it exploits a loophole that will be fixed sooner or later, and I call it cracking.
Why would you need this information anyhow?
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am working on an ERP System(Website) developed in php(Laravel).The requirement which i need to implement is that when ever there is no internet but if a user wants to submit data,he/she could do that and when internet comes and website start working.i want that offline data to be retrieved.
Happy Coding!
This maybe sound like a workaround. But you could do that by using localStorage of your browser. if you choose this path you have to check periodically whether the internet is available in the client machine. And also check the localstorage to look for data to submit. Of course you'll have to use javascript to check what i'm suggesting
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm not quite sure if this is possible, but I am looking for a way to get the twitter username of a person visiting a website. Does anyone know if there is a way to do this, or if I always need a user to confirm that I am seeing this data?
Preferably I'm looking for a PHP library that I can do this with.
No, that is not possible. Think of the security vulnerabilities: if any website could access your Twitter account information without your permission, then you essentially have no privacy.
You need to use OAuth to first ask the user to sign in. Then, you will have limited access to that user's account information.
Here is a list of PHP libraries to help you do this.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
i want to login from my website via link on a partnership website. To program this with PHP, is not a problem for me. But i ask myself if there is a standard or good practice to do this.
My current solution is to use a proxy. Does anyone have a better idea?
Many thanks.
You should definitely take care that the link for log in on that partner website is only valid once. Moreover, you should take care of timing attacks, etc.
The best thing is that you use one-time tokens and that your websites communicate with each other via an internal API. This prevents most of the issues.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm creating a wordpress website, and I want that when I or an user make a post it gets automatically reposted to other sites.
I know that there is API for major websites, for example facebook and twitter. But what if I want to make a post in olx.com? they have no API. Is there a way to create a php function that logs into olx, post and logs out? It doesn't have to be a php function, i'm open to ideas.
There is a lot of reasons to not do that.
Better stay safe and play with the websites that have api, allow feeds or already implemented a way for you to post on their sites.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to provide some functionality to another site.
What way is better and why?
1. Iframe
2. Provide PHP code and HTML/CSS.
I trust another site's admin.
First option is good but you keep all the responsabilities on your side. if an error occur, you're the only one to blame.
HOW? : you generate a regular Html page and give them an iframe. that's how facebook does it.
Option 2 is the eazy way but you talk about storing things into your DB. in this case i hope you know the guy who manage the other website.