Facebook pan page caching clear problem - php

It seems that facebook caches fanpage , I am developing FBML application that is displayed in the fan page as a landing tab. But it is just frustrating, anyone has a solution how to clear or prevent facebook fanpage cache or any other way to work with fanpage/application development
?

There is no way to prevent the caching on FB's side but a workaround is to use an application within a tab on your fan page that uses the onclick event to load an iframe within the tab to your site, this way the content that is loaded will never be cached as it will be run from your own server.

Related

Caching works too good

I've a problem (what a coincidence) with my website. My website is build with WordPress. To manage logins and all the stuff I'm using Ultimate Member as plugin and rebuild it. To make my website faster and enable caching, I've installed Cache Enabler.
When I login now into my website, I've the problem that when I switch for example from the account page to an other page, the other page don't knows that the user is already logined and shows an error on the page. When I press no Strg + F5 (which clears the cache and reloads the page), the content is visible.
So is there any way to clear the browsers cache after the login within PHP?

Share mobile logged in user details with PHP session

I am working on a mobile site that will run alongside a mobile app being developed by another company. My product manager has provided a spec, in which she is mentioning two options to implement a feature:
Clicking on button from mobile app will open mobile browser, where the user will need to login again, and proceed to perform required action.
Clicking on button from mobile app will open in-app browser, user does not need to login, and completes the entire flow and closes the in-app browser.
My question is: I do not understand difference between mobile browser and in-app browser. Does in-app just mean mobile browser opened from inside the app? And if that is so, then using PHP will I be able to recognize the current login in the app? or is there any way I can ask the mobile team to set a session when they open the "in-app" browser such that I can access that session and determine who is logged in?
As you can see, I am pretty ok with PHP and server side coding, but my knowledge of these new mobile technologies is very poor...I guess I am getting just too od for this job now.. sigh.
Any pointers are very much appreciated.
I think by in-app browser he has meant WebView which opens web pages as a part of application
This question seems to be duplicate although here is the ans you probably need.
Android WebView VS Phone Browser
Have you any doubts left?
mobile browser: a complete application inside the mobile device. Common examples are Chrome, Firefox mobile, Opera Mobile.
in-app browser: it's an instance of WebView. That's a normal view inside your app layout that is able to render web-content.
To open the webview as a currently app-logged user, you generally will add some token parameter to the URL that the web development team can use to identify the user on the server.
The WebView generally behaves like a browser, but you should implement a WebViewClient to properly steer some of the navigation patterns to make sure it behaves inside your app, the way your app should.

Improper Cache Management in joomla 2.5

The joomla 2.5.22 site allows user to go back to the browsed pages even after a
successful log out. I tried the following steps:
1. Open the page after login authentication
2. Browsed some pages and logout from the website
3. Click on Workoffline option in Firefox
4. Open the pages from the browser Cache and still some authenticated pages are opened
Is there any way to delete the browser history on logout ?
This is a security issue. how can we overcome from it? Please suggest
3. Click on Workoffline option in Firefox
It is a function of Firefox - working offline.
You can add HTTP headers, so that the page is not cached, look there for examples:
How to control web page caching, across all browsers?
U can use Firefox's Incognito window.

Unable to prompt to install plugin when loading page inside of an iframe

I'm working on a portal to a page where customers can see the streaming video of their security cams. I just currently have a page with our logo with an iframe containing the proper surveillance page. It works fine, except for one major problem. If the plugin isn't already installed, it will never prompt to load the H264 Streaming Viewer from AVTECH, as long as its being loaded through an iframe.
Is there anyway around this?
Do they have to be embedded via iframes? You may also consider injecting them via <object> or if they’re supposed to be iframe-dynamic consider using JavaScript to swap/navigate.
If iframe itself does not prompt, there’s no way around that wile using iframes.
You could however add a small or non-visible video to the page with the iframe, so users are asked (are they asked automatically or when starting the video?) when loading the parent page.

How do i run php code in fan page?

Is there a way i could run php code in facebook fan page. Basically i want to show the producsts from this site:
http://ohlalashopping.co.uk/
on one of the tabs of fan page. I would love to see any possible solutions to achieve just that.
Edit:
Based on the answers provided, i just wanted to ask one more thing:
How do i add the iframe app to the fan page?
You can't execute PHP on Facebook. You can write a Facebook App or widget which accesses data from your php application. There is also a PHP Client API for Facebook which can be used to tie together Facebook and your PHP web application.
You'll need to write a Facebook application that displays products from your website, and then install that application to a tab on your fan page.
When an application is installed in a tab, Facebook will query the url you've specified in your application settings. This is different from the regular way of accessing applications in that users don't need to install the application to use it.
it is also possible you can make iframe application

Categories