facebook

facebook app redirects forever on authentication.

I have the following code in my appinclude.php file and for some reason the app keeps redirecting forever and firefox gives me an error that the redirect will never end. I am not sure if i am missing something but i have tried to change the redirect_uri to the directory on my server where the app is hosted but i get an error from facebo...

Variable in a function cannot be seen out?

<?php function curl($mail){ $go = curl_init(); $access_token = '1234567890|5fabcd37ef194fee-1752237355|JrG_CsXLkjhcQ_LeYPU.'; curl_setopt($go, CURLOPT_URL,'https://graph.facebook.com/search?q='.$mail.'&amp;type=user&amp;access_token='.$access_token); curl_setopt($go, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows N...

Retrieving posts and comments from a Facebook page

I want to retrieve all of the posts from a given facebook page along with the associated comments. I wrote this code (app details obfuscated, replace with your own in order to run it). <?php require_once('facebook.php'); $facebook = new Facebook(array( 'appId' => 'MY_APP_ID', 'secret' => 'MY_APP_SECRET', 'cookie' => true, ...

Facebook Connect & application/xhtml+xml

Hi For various reasons I'm serving my pages with the application/xhtml+xml content type (at least to browsers explicitly accepting that). This seems to break FB Connect, probably because it uses document.write() which isn't supported for that content type. Does anyone know of a workaround which makes FB Connect work with pages sent as a...

Unit testing facebook applications

What are good practices of unit testing facebook Canvas applications ? Lets say you have MVC application with controllers utilizing local Facebook library which provides access to Graph API, FB session. After all your application depends on facebook authentication mechanism (OAuth and Facebook Connect) thus user is required to authenti...

Facebook PHP share from my website

Dudes When you share something on Facebook (e.g. from Twitterfeed), it puts the icon and link for Twitterfeed website under the shared thing in this format: icon goes here 2 hours ago via twitterfeed · Comment · Like How can I make a page in my website send its icon and linked name? Thanks ...

How can we get details from twitter and facebook using PHP

Hey How can we get details from twitter and face book using PHP suppose think that i am developing a site which have Twitter and Face book Log in, i will have only a user name not so much details,that's why i am asking, how can i get details like, DOB,Address,Current Town, Country So on ...

How to make html request without full page reload and without ajax

I saw that facebook is doing that. if you look in the chrome inspector they keep on adding "html documents elements" when you navigate on diferent pages. I also noticed that google dose this also. My intention is to make my PHP+DOM load faster under 200 ms from website backed. It's some web server thing? I'm using php with apache. T...

Facebook Applications & Animated Loading Gif

I am working to develop a facebook application and am running into a small snag. When making a ajax call I want to let the user know that the application is loading. My confusion is that others say facebook does not allow animated gifs however the above application has an animated gif. I scoured through their source code to no avail. ...

Update facebook status via SMS

Hello I am developing a SMS application for updating facebook status in PHP. I can collect username and password of user. I know it can be done by Status.set ,but how can I use the username and password and get the necessary session key and as such. Please help. ...

Enforcing Facebook Authentication: Client-side and server-side

I'm building a social media app in Flash (AS3) that is tightly integrated with Facebook--all user accounts are handled via Facebook connect, and all Facebook connectivity is handled via a combination of the Javascript and AS3 Facebook APIs. I'm using Codeigniter on the backend for server-side data management, which includes tracking use...

how to gain a high performance with a very big database

I alway wondered how could a very big site like facebook to be faster than any other sites ,though the very big large amount of data which stored everyday .. what they are using to store information and if I use sql server to store e.g news feed is that ok or what (the news feed will be stored in a separate table which called News) . ...

Display FBDialog in correct size on iPhone

Hi there, I am trying to display a connect dialog for facebook in my app. The dialog view pops open and loads from facebook. But the page shown is one for regular browser, not the version optimized for mobile phones. Do I need to do anything with my app or on facebook for it to work? Or do I need to provide that form on my server? Con...

How to fetch facebook friends email adress

I tried hard, but I think isn't possible but yahoo is capable to import all'your contact information. How that works? ...

Authenticating if a Facebook account exists - don't want to go through FB login

Hi, I'd like to figure out a way to authenticate a facebook account on a form, without having to go into facebook login and whatnot. So my question, is there anyway to check, I was thinking maybe the markup with regex, where I could check to see if a facebook count exists, and if so do something. Thanks for the suggestions. ...

'The page you requested was not found' after finish to invite users on facebook application

Hi, I tried create a invitation function on iFrame facebook application, but i have errors when submit it, so when user done invite a person, then it should redirect to action url that we set, but the page is not go to the right url, it says "The page you requested was not found." here is my code that i use : <fb:serverFbml> <scr...

Facebook Like button Flash integration

How can I implement like button into Flash? Official documentation supports only Javascript solutioon. ...

Problem using json to loop through data to extract values.

Hi, I have a json output of list of products(menu) and their prices. I have a application tab on my facebook fan page. {"menu": { "id": "file", "name": "productname", "popup": { "price": [ {"value": "$4"}, ] } }} The product list or menu is long. I want to use fbjs to loop through it and extract productname a...

Facebook Connect Graph API - Why Can't I Retrieve All User's Details?

I feel like every second question i ask here is relating to Facebook Connect - that says a lot about their API. Anyway, that's politics, i digress.. I'm trying to pull back user details from the Graph API for use in my application (which is an FBML external website - JavaScript SDK for authentication). I have requested the following pe...

How to send Facebook users back to their respective Profile pages?

I have Facebook users logged into my site. After they are on my site, I want to return each user back to their own individual Profiles. Specifically, I want to return them to the Profile page that shows their Tabs. e.g. http://www.facebook.com/home.php?#!/username Rather than sending them back to their default (home) page. What link...