Add Facebook log-in button - facebook

Edicy.com doesn't support php and I was wondering what html code to add to enable Facebook log-in that doesn't require php.
I'm also wondering if I need to sign up as developer and get an ID in Facebook to be able to use the code.
Thanks in advance for any help!

Follow these steps:
You need to register as a developer here (free of course).
Then create an app from here. And configure the appropriate settings.
This will get you an app id, which is used in the code
Without PHP, yes of course, integrating the javascript sdk is too simple.
Integrate the facebook login from here - trust me too simple!
Rest, if you find any difficulty you'll find its solution here in stack!
I hope that helps. Good luck!

Related

Do I need a library for Codeigniter to create a Facebook application?

Do I need an entire library to crate a Facebook app with Codeigniter? I have not made an app for Facebook before the the developer documentation looked simiple. Beyond using my "secret" id for my app what else would I need to do to send my output via my view back to the facebook canvas? Are things more complicated than they seem? Don't I just output to my view as normal except things go to the canvas? Thanks.
No, you do not need a library. You can make all requests to the Facebook Graph api using cURL or any other method to call urls. However using the Facebook PHP SDK does help, it has a lot of helper methods that you'll find useful, do check this link to the documentation for the sdk, it's helpful.Hope this answer helps you.
p.s: And yeah you just output to your view as any other web app
No, you do not need a library, but it will make the process much smoother and take care of a lot of baseline functionality that you will need.
You might checkout my post here to see exactly how to integrate the offical facebook SDK within a codeigniter application as a stand alone library...

Facebook Login + Registration

I have looked through dev docs and and tutorials via google engine, but I am kinda lost plus I am no expert in logic or programming..
I am trying to combine with login and register on the page. If user have fb account, they can log in. and then have database store their information for shopping purpose. if not, they could register and again have database store their info.
How to combine them using PHP SDK? Also I notice that I couldn't use Javascript SDK for login and register (do I need to create two apps for login and register?)
Insight will be appreciated. thank you very much
If you are talking about the "Registration Plugin" then I've written a tutorial about this:
How To: Use Facebook Registration Plugin As Your Registration System

Facebook and Twitter API help for Iphone SDK

Im trying to implement Facebook and twitter into my app, anyone link a place with a good step by step for each.
I have tried several on various sites and youtube, and all have made my app crash. Any help would be appreciated thanks.
One place to start might be using ShareKit:
http://www.getsharekit.com/
That bundles together a lot of social platform updates in something easy to integrate. I think you can customize it beyond what is there.
Don't forget you'll need application ID's for each service you intend to link to - you need to create a twitter and Facebook app account.
For twitter I use cocoa built in
twitter.h
for iOS apps.
Definetely:
- https://developers.facebook.com/docs/mobile/ios/build/
- https://dev.twitter.com/docs/ios
USE MGTwitter Engine to use twitter api in iphone.and PlainOauth library..It can be downloaded from githubsite..

How to connect to Twitter from iPhone?

I need share on twitter in my application through iPhone.App has to tweet in the twitter. There is a button action on clicking which twitter login page should open.
How to do this?
Code for this appreciable..
Thank You.
You can use Twitter-OAuth-iPhone. However, if you are using SDK < 3.2 then you need to download an old version. There is a demo app included which shows how to login and tweet clearly.
For a tutorial on this, check this.
Basically you need to refer to Twitter's page for libraries using OAuth on iOS.
Alternatively you may always use the "?status=" method:
http://mobile.twitter.com/?status=<YOUR MSG IN URI-ENCODED FORM>
However that may not work if the user have not signed in yet. Try the OAuth methods which would be harder to implement but safer for sending messages.

How can I add a link to an iPhone native app from website IF POSSIBLE

I have a link to a Facebook page from a website. I know I can use the URL scheme href="fb://" to open up the Facebook application from within an iPhone, but if the iPhone user does not have the native application installed, an ugly error message pops up. I would rather just send this user to the Facebook website.
There's gotta be a way to do this, but everything I've tried has had some short-coming:
Can't make a HEAD request to a different server
Can't run a try catch javascript function since the event leaves the client page
Can't seem to access information about the user's applications... or can I? I've read a bit about a cookie called "appInstalled" but can't find any real documentation about it.
Any ideas out there? Thanks a ton in advance.
Denis
Can a website determine if a device [iPhone] has certain applications installed ? I'm pretty sure that's a big NO because of privacy and security concerns.
Not a really technical answer, but you could change the user interface to give the user an option. For example, having:
Click here if you have the facebook application installed on your iPhone.
If you do not, click here to go through to the site.
Sorry that I cannot offer a "proper" solution, I'm not really that familiar with iPhone development.