I want to develop a Facebook application which shows the data from database from my own server.
I have found one question here : Can you use your own database for Facebook applications?
But like above question I don't want to use iFrame to show my content on Facebook application.
Any solution for this as, I am new to Facebook application development.
Edit:
Simplified version: I have a page in my server which generate xml feed of the product. So can I read this xml feed url in facebook Application?
Almost all applications use an iframe to display the actual app, I don't think you'll be able to avoid it. What you put into that iframe however is entirely yours. It runs from your server, and so can use whatever back end you prefer.
Why don'T you want to use iFrame? FBML & Iframes are only ways you can show your content with !
Related
I have a website, www.website.com. This website includes three pages:-
Home Page www.website.com/home.php
Contact Page www.website.com/contact.php
Offer Page www.website.com/offer.php
Now I have created a web view app of my website (Native App)
A user having an android app, visits www.website.com/offer.php?root=yes from the browser.
What are the ways, so that the link opens in the app, rather than in browser?
I'd suggest you using this assistant, which is built in Android Studio. It's gonna add the necessary code for you in order to lead the users from those links to your App using App Links. Notice that this solution is available only from Android 6.0 (API level 23) or higher.
In order to support lower API levels, you should read this post and this documentation about Android Deep Links.
For your understanding, you should read this documentation about handling Android Deep Links and Android App links, and the difference between them. See which is better for your needs.
You can use deep linking
https://developers.tune.com/sdk/deep-linking-to-your-mobile-app-from-your-website
Here in the example one html code is given you can add the js code in your page and you can remove the setTimeout as it is redirecting to play store if you don't want to force user to install the app
How to record user's voice from the website without Flash? I want to use HTML5 but I found it will be hard to implement that. This site says this functionality is now only supported by the latest version of Chrome and Opera.
After searching the articles both here and the other site, I decide to find an alternative approach.
The scenario is: users will use different sort of platform (Android/iOS and other OS), but they access the same website and record their voice in their device and upload it later.
BTW: My purpose is that, as the users press the "Record" button on my web-page, the recording starts with his microphone. And as he presses the button again, the process stops. This can be on an iPad or a mobile phone so that he can't record his voice by some other software and store in his device then upload. They use their device to link my web-page to record voice. The webpage is not just for the users who operate on a PC.
Can I implement this function in client side via javascript? Or I should refer to Server side? What language and method should I adopt?
You can check google's web fundamental article on recording audio here : https://developers.google.com/web/fundamentals/media/recording-audio/
Its pretty easy to follow and it is device independent, obviously given correct browser support. You can get the audio recorded and saved on the local device or upload it to a server. Hope it helps.
oh, and on a note, its based on HTML5 and js. I don't know why you think implementing it using HTML5 is difficult but I hope this helps.
If it was up to me, I'd go for something like the link mentioned above and just use a fallback to Flash applet if its not supported in the users browser.
When it comes to the mobile platform, you'll have a big problem at least with the iPhone. I dont think you can upload files, and Iam pretty certain that you cannot record audio from their microphone. The best approach would be an application to do such a thing on mobile devices. Iam pretty sure that this can be done with PhoneGap - http://docs.phonegap.com/en/1.0.0/phonegap_media_capture_capture.md.html
If your not familiar with PhoneGap it allows you to write cross platform applications for mobile devices in HTML/CSS/JS and still get access to some core components. Like capturing audio.
Unfortunately no, you can't record from the browser, however, if you have an app (you can use Phonegap/Cordova (which use HTML5, JS and CSS to build your app for many platforms)) to record whatever you want to record, you can easily upload what you want to your server. It is currently impossible to use pure HTML5 in the mobile web browser to do this.
If you want to learn more about this, the API reference is a good start: http://docs.phonegap.com/en/2.1.0/cordova_media_capture_capture.md.html#capture.captureAudio
I know this subject has been done already over and over. but... i must be stupid so i'll try to figure out my problem simply.
I have a facebook page, let s say that one :
http://www.facebook.com/pages/Medieval-Forgecom/302734029745018
with a few fan poeple.
now on my website i would like to give a discount to poeple who are fan of that page.
So i tried the php api (with an application id and secret) before discovering that this is NOT what i want as my page is not an app and has no appId neither secret. Am i misunderstanding something here?
So i m wondering how in php i can know if someone is fan or not...
If it is not possible i could use the javascript api to make this check ( wich is quite bad, it should be done somewhere via php) but even this way i get trouble with the deprecated api and the code refering to javascript inside the facebook website.
in a nutshell, i'm lost.
thanks for your time and attention.
Do some research on the concept of "fan-gate". I think this is what you're looking for.
https://www.facebook.com/note.php?note_id=10150130919053430
http://www.youtube.com/watch?v=fBBnrtG0hAw
There are three ways of using Facebook API. Social plugins are widgets such as comments or like buttons. You can put them into your site directly and easily. And then there is the Graph API. First way of using this API is to create a whole standalone Facebook application, such as Farmwille. Second way is to use it only at your site, out of the Facebook frame. Regardless of the type of your usage, you need to register an application on Facebook, so Facebook API can authorize you. Without that you can't use the API. You don't need to create a real standalone app if you want only to use the API at your own site, but you must register it and this registration is just called Facebook application. It can be virtual application representing your site.
is it possible to create a page tab without iframes in Facebook now? -how to add a tabs using FBML?
Facebook has already deprecated page tabs using FBML, iframe is the only method now. This is mentioned on their developer roadmap:
We will stop allowing new FBML apps,
but will continue to support existing
FBML tabs and apps. Instead, we
recommend using iframes.
You can do that as long as your application is sandboxed.
In your application setting on Facebook:
If you enable "Sandbox Mode", the lower config will be available. However, this is not the way you should be building apps today. Iframes and web standards are the way to go.
Now, my question is, why do you want to do this?
I am developing a facebook application that fetches the newsfeed of the logged in users and renders it. Currently, I am using iframe and I use PHP SDK to call the Graph API to fetch the posts and render them (generate on server side via PHP). To emulate the facbeook like look and feel, I mimicked their styles on which I am somewhat successful but not very much.
I am wondering is there a way in Facebook API to do the same for me? I read about the FBML but there is a deprecation warning along with a notice that they are gradually moving things towards their Javascript SDK.
Any ideas?
Well, you are narrowed to what XFBML (The Javascript API) offers you.
I had the same problem a while ago and this site saved me - http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/
There are some basic styles that are used by facebook.
Good luck.