Wordpress need username to external script [closed] - php

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 want to send the wordpress username to a external file when the click on a button on my website.
I have test it with Post but then you can edit your username.
Hope you guys can help me

If you are worried about the user modifying the request, then the request must originate from your server rather than from the user's browser.
To do this, your button should call a script on your server. That script should then retrieve the username from user's current Wordpress session then send that directly to the other server using libcurl or a similar library.

Are you sure you don't just want to get the log in info to you? I think this might be an attempt scam people logging into your site. You aren't providing any coding info or nothing. Obviously something is wrong here.

Related

How to ensure that user has actually share my website link on whatsapp? [closed]

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 3 years ago.
Improve this question
I am having a little problem.Well,I know how to let user share my website link on whatsapp.but can't able to figure out how to ensure that he/she actually shares it on whatsapp.
I think you can use some cheking on your url, for example www.yoursite.com/yourUser, when you share that on WhatsApp the App request the site to show some info, there in your code you can check the user agent and look for some whatsapp reference... then if you find it you can do whatever you want with that, but you need on your url something to identify the user to make the action...
I don't think there is a perfect solution for this, but we can get close by generating urls with a unique slug/parameter for each user. Then check the user-agent string for WhatsApp when someone requests the url. WhatsApp will probably try to load metadata from the url when the user is about to share. You could also filter out the users own IP address and wait for someone else to see it in WhatsApp to confim it has beed shared.

PHP get twitter username from site visitor [closed]

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.

PHP auto share to facebook page [closed]

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 7 years ago.
Improve this question
I have a php script to share automatically on FB page. Everything worked perfectly until last night. Now the post appears like a post on the page wall using my personal account. Has something changed on facebook graph?
Revise that your api key was not removed or modified. As well make sure you are using the actual page id or page api key (fb admin id) and not your profile's. The most common thing is that before last night you were logged on as your page and not your profile, then when you switched back it did so also. Hope this helps :)

How to check if visitors are connected to facebook [closed]

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?

Node.js socket.io webchat moderation [closed]

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 8 years ago.
Improve this question
i have installed the socket.io webchat and I want to add moderation-functionality for the posted comments. Does anyone know how to do that? It should work like when i post a message, the moderator hast du either accept/approve or delete the message. When he approves it, the message will be visible in the chat, otherwise it will not be visible.
any help or suggestion is welcome!
Socket.io is more for real time communication. You actually need something between the data sending and receiving. So, I guess that you should avoid the web sockets and store the comments in a database. The moderator then will need to read them and approve/deny. However such implementation is not really good idea when you have a web chat.
You could also try to send the comments to only one user (the moderator). And if he approve the comment just to resend it with a flag approved. All the messages which don't have this flag should not be shown.

Categories