I am using the PHP Facebook API and the Javascript part to check if an user is logged in.
But my username will be displayed after 3 times refreshing the page. Here are the steps that I take.
Log into Facebook
Go to my website (first time visit)
Refresh my website 2 times
My username will be displayed
Does someone know something about this problem?
Related
i have a main page where i have a service, the user can enter a text and the text is processed to have to user a response.
I can do it by two ways, reloading the page with http post method in a form or with ajax(laravel livewire) to no reload the page.
The question is, i have google adsense in this page, is better to reload the page in every user request when the user send the form to serve more ads or is better proccess with ajax the form and not reload the ads.
With ajax:
The user enter in page and send the form, only i print 1 time the ad, if the user send 5 times the form, only i showed 1 ad.
With http form request:
The user enter in page and if the user send the form, the page is reloaded because the user send by POST method the form, if the user send the request 5 times, the ad is showed 5 times.
I don't know if the CPC will go down because many impressions are made in the event that the page is reloaded when the user submits the form.
¿What do you think that is better to get the best earnings?
Reloading a page on Google AdSense can cause the ad units on that page to refresh, potentially resulting in new ads being displayed. However, reloading a page too frequently can negatively impact the user experience and may result in lower ad revenue.
It is generally not recommended to reload pages on Google AdSense too frequently, as it can lead to lower ad revenue and increased bounce rates. If you want to refresh the ads, you can use the async feature of Adsense which will refresh the ads without reloading the entire page.
Additionally, Google AdSense has a policy against automatically refreshing pages in order to increase ad impressions. This is considered to be a violation of their policies and can result in your account being terminated.
It is better to avoid reloading Adsense pages unless it's really necessary, and if you really have to do it, make sure you are doing it in a way that is not against Adsense policies.
I'm creating a simple app in which I'm saving a session of a current user using a token. Once the user login and close the app next time user will go to the home page. But If the user logs out. Next time will go to the login page and now if the user enters the initial characters of the name. I want to automatically get his/her name and password and fill in the form like in browser and web apps
Any help?
If need more description. let me know in the comment section.
I am trying to create an authenticated login to a website using import.io but before I get to the username and password screen I have to enter an ID number in another screen. I have recorded all the actions, but when I stop recording I get "You did not enter just a username and password" and wont let me go any further.
If I enter the ID number and navigate to the username and password screen THEN start recording, import.io rather unhelpfully reloads the page, which takes me back to the ID number screen.
How do I get import.io to accept the ID, username and password as logon credentials OR how do I stop import.io from reloading the page when I hit record?
I found three different approaches on various websites that requires a user to log in:
Log out a user who goes back to the log in page
Redirect the user to a welcome page
Do nothing, allow the user to stay on the log in page
I wanted to change the approach from 1 to 2 to improve user experience on my website. But I would like to seek some advice first regarding whether there could be some nasty security exploits awaiting me.
Redirect the user to a welcome page is a good one..
1 and 3 are not unacceptable for any application
Check if the user was referred by the "login page"(enters creds). if not and is logged in bounce to safe side. else bounce to public home page
login/register links should not be visible to the user if he is logged in. If we manually traverses to the page by typing the url (ex: www.example.com/login.php) u can put check on these pages
$_SESSION['userid']!=NULL then redirect to the home page.
I think it will be best for you if you redirect Logged In user to PREVIOUSLY VIEWED PAGE.
Like -
<input type="hidden" name="redirect_url" value="print_HTTP_REFERER" />
Then on Login action page - redirect user to HTTP_REFERER using (header or meta refresh)
I am trying to load up http://developers.facebook.com/apps page but i always get redirected to my 'adverts & pages' page. I cant add the Developer app either as i get redirected also to the same page. Im simply trying to register my website as an app. I need to set a fb:app_id value for our Like buttons
I have a recorded mobile number & credit card so our page should be verified
Any thoughts ?.
You are currently logged in as a page account and not a real user account. Only user accounts can create facebook apps.