ravinder07 Posted May 5, 2015 Share Posted May 5, 2015 Hi, I am a newbie and learning basic. I have a facebook account with 10+ fan pages. If you have FB account and Fan Pages then you might know that you can switch your profile with Fan page and post and comments on people status with Fan Page instead of your Default Profile. Currently I have to click on Triangle button in right top corner which open a drop down menu option tab and there are my Fan pages listed and then i click one of them to change my Profile as Fan page and then do comments on people Fan page so they can see my Fan page name. I was trying to switch Fan pages via URL. I copied my Fan page URL and pasted in the address bar but it only open my Fan page and did not change my Profile to it so I must have to go through by click on Triangle button in top right corner and then fan page to change profile. I inspected elements in browser while opened my fan page and notice that there is a PHP page which change identity between pages and our profile. And it might only execute when we manually click on fan page in drop down menu. See this is page inspect element and all this li contain my pages information. Here i opened the first LI tag and you can see that there is a PHP page of changing identity. NOW, What i want to do is that I want a url which let me change identity between my pages and profile directly via pasting it on Address bar instead of every time i click on triangle button and scroll to find my page name and then click. I am sure you guys can give me proper format of URL which can be directly paste in my address bar to switch identity. I hope i have explained it well. Waiting for you replies. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/296073-how-to-execute-identity-switch-php-script-in-facebook-via-url-please-help/ Share on other sites More sharing options...
gizmola Posted May 5, 2015 Share Posted May 5, 2015 I'm afraid it's more complicated than that, probably. What is happening is that they are using javascript to manipulate their API. View source is not going to be as helpful as a javascript debugging tool like Firebug, which will let you actually trace what is happening, but I'm doubtful you'll be able to just get some static url's you could stick on a page. You might be able to get someone really versed in the Facebook api and javascript to create you a small app that would utilize the api to login to Facebook and then change context for you in a more efficient way for you, but it's doubtful you will be able to explore this idea yourself, unless you are capable of reverse engineering how this works in their app, and even then, if they don't want you to do this, it could be difficult to accomplish. Quote Link to comment https://forums.phpfreaks.com/topic/296073-how-to-execute-identity-switch-php-script-in-facebook-via-url-please-help/#findComment-1510832 Share on other sites More sharing options...
ravinder07 Posted May 7, 2015 Author Share Posted May 7, 2015 Ok Admin thanks for confirmation Quote Link to comment https://forums.phpfreaks.com/topic/296073-how-to-execute-identity-switch-php-script-in-facebook-via-url-please-help/#findComment-1511046 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.