SEO

Showing posts sorted by relevance for query Facebook Video Application. Sort by date Show all posts
Showing posts sorted by relevance for query Facebook Video Application. Sort by date Show all posts

November 9, 2011

Facebook: ULTIMATE 'Hard to LIKE' Edition | HyperArts

utorial: Add an iFrame Application to your Facebook Fan Page - Fall 2012

Tuesday, November 1st, 2011, 4:07 pm

Updated Tutorial: Fall 2011

Facebook has been very busy updating how things are done, and one of the changes is how you create an iFrame application tab.

Although the concept is pretty much the same, the interface for creating a Facebook iFrame tab app has changed. This tutorial updates a tutorial we did on this subject earlier this year.

Related Tutorial: Add the Reveal Fan-gating Feature to your iFrame Page Tab

What is an iFrame application?

An iFrame application you allows you to embed an external Web page in your custom Facebook Page tab. Your "index" or "canvas" page is actually hosted on a non-Facebook server and is surrounded by Facebook "chrome" (the Facebook elements on the page).

Because this iframed page isn't hosted on Facebook, it can use standard HTML, CSS, and JavaScript like any other Web page does. Interactions with Facebook content are done using the Facebook Software Development Kits (SDKs) and XFBML tags. (For this tutorial, the Facebook SDK is not required.)

The downside of this approach is that you need to be familiar with those technologies and you will need a Web-accessible server where you upload the files for your application page. Or you can add an iFrame-creation application to your page, such as TabPress, freeing you from having to create a Facebook application but more restrictive in that you can't control the icon that appears next to the tab name in the left navigation.

Setting up your server

Facebook's HTTPS / Secure Hosting Requirement
The first thing to know is that wherever you host the index page of your Facebook iFrame application, the server will have to be secure, i.e., have an SSL Security Certificate for the domain under which it's hosted.

Read our article on Facebook Page Tabs and HTTPS.

The other assets called into your page (images, JavaScript, CSS, video, etc.) will also have to be hosted under HTTPS. We recommend Amazon S3 hosting for this, and this is also addressed in our HTTPS article.

Create your iFrame application

On your secure Web server, create a directory for your iFrame application. In this example, we are going to create a new directory on the server called "facebook" and then a subdirectory called "mytestapp". The file path will look something like this in your FTP program:

You will want to put all of your files (HTML, CSS, Javascript, PHP, etc) in this folder or its subdirectories. If you don't know how to do this, read this FTP tutorial.)

Your HTML file

Remember, in your HTML file you can utilize CSS — and inlining styles with the <style> ... </style> tags works fine with iFramed HTML files — and JavaScript (Do not use FBML or FBJS!).

You'll want to set the main container DIV for your content to 520 pixels wide. Here's a very stripped-down example of your HTML file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<style type="text/css">
body {
width:520px;
margin:0; padding:0; border:0;
}
</style>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>
<body>
<div id="container">
<p>This is some HTML content</p>
</div>
</body>
</html>

In the above example, I include both the code for an external stylesheet called with the <link /> tag, as well as inlined styles called with the <style> ... </style> tags, in case you want to do it that way. Either should work fine.

Installing the Facebook Developer Application

The first step in creating an application in Facebok is to install the Facebook Developer application.

To do that, log in to Facebook and then visit the URL http://facebook.com/developers.

If this is the first time you've installed the Developer Application, you will see the Request for Permission dialog show below:

Click the Allow button to proceed.

Creating your iFrame application

Now that you have the Developer App installed, click on the Create New App button.

Facebook Create New App

Give you application an "App Display Name" (the name displayed to users) and a "Namepace" (for use with Open Graph — 8-character minimum; alpha, dashes and underscores only — keep trying until you get a Namespace that hasn't been used). Then tick the "I agree to Facebook Platform Policies" box; then click the Continue button.

Create new Facebook iFrame App

On the next screen, enter the security phrase and then click Submit.

There are a lot of options you can tweak related to your application. In this post, we are going to focus on the basics needed to get your iFrame tab application up and running.

The Settings Tab

This is where you do the basic set up for your app.

Facebook app settings

First, at the top, you'll see the App ID and App Secret values. Most frequently you'll be using your App ID to integrate with Facebook.

Second, notice the "edit icon" below the App Secret. This is the icon that will appear to the left of your tab's name in your page navigation, so make it eye catching and make the dimensions 16 x 16 pixels. If you don't create your own icon, your tab will have a generic Facebook-tab icon: Generic Facebook Tab Icon

Basic info:

  • App Display Name: Make this the same as the original value you provided;
  • App Namespace: Make this the same as the original value you provided;
  • Contact Email: Where you want Facebook to send emails regarding your app;
  • App Domain: just put "mydomain.com" where "mydomain.com" is your secure hosting server;
  • Category: Select a category from the pulldown list.

Cloud Services
Since Facebook instituted their HTTPS requirement for all applications, they started offering cloud hosting solutions for those who find setting up a hosting account and secure server too much bother, expense or both. But click the Learn More if you're interested.

Select how your app integrates with Facebook

This is where you select the type of application you're creating and how it integrates with Facebook.

How does your App integrate with Facebook?

An explaination of the Facebook-integration values

For the purposes of this tutorial, you will select "Page Tab" from the various integration options. It's the last one listed but once you've saved your changes it will be listed first (as in the above example).

  • Page Tab Name: The displayed name of the tab in the Page navigation;
  • Page Tab URL: The unsecure URL (HTTP) of your index page;
  • Secure Page Tab URL: Same as the "Page Tab URL" but with HTTPS instead of HTTP;
  • Page Tab Edit URL: You can create any URL at your domain here and then set up that URL to redirect to the Edit Page for the Facebook tab. This is commonly done using a 301 or 302 Redirect. I'm not covering 301/302 redirects in this tutorial;

If you intend to use calls to the Facebook JavaScript SDK on your tab - Add "App on Facebook" values

If you want to use the Facebook JavaScript SDK in your Page Tab — for example, our Share Button for Page Tabs — you will also need to select the "App on Facebook" integration, and add the same URL values as for "Page Tab":
Facebook application - App on Facebook

The "Canvas Page" value is autofilled by Facebook, with your Namespace value.

Click "Save Changes" and you're done!

Installing your iFrame application on your Fan Page

Once your Facebook application has been created, you will need to add it to your Fan Page. To do that, click on the View App Profile Page link in the left column of your application page:

View Facebook App Profile Page

Now click the Add to My Page link on the left.
Add to my page

In the popup dialog, find the page to which you want to add the tab, then click the "Add to Page" button. The button will then change to "Added to Page."

Your new iFrame app should now appear on your Fan Page. If you don't see it there right away, you may need to adjust your Page settings. From your Fan Page, click on the "Edit Page" button in the top-right corner of your page. Then click on "Apps" and find the application that you just added. Click on the "Edit Settings" and you'll get this popup dialog:
Edit Facebook App Settings

  • Tab: If it says "Available (add)", click "add" to add it to your navigation; if it says "Added (remove)", you're set;
  • Custom Tab Name: You can override the default tab name by entering a new name in this field, up to 32 characters, and then clicking "Save".

Click "Okay" to save your changes.

Troubleshooting

Based on feedback to this post, we are starting to compile some iFrame App Troubleshooting Tips. We will update this section as new questions some up.

Check your URLs!

Make sure that the URL you set for your iFrame is correct. Try accessing it directly, via your browser, instead of via your Page tab. Bad URL addresses are the most common problem. If the URL to the Web page or image you want in your iFrame Page tab is incorrect, obviously the tab won't work.

You can also test the validity of your URL by right-clicking the area where your iFramed content should be and then select "This Frame: Open Frame in new window" or something similar (each browser presents this option a little differently).

Make sure you have specified an HTTPS / Secure URL for your Page Tab application. If you don't, your tab won't load for people using Facebook with Secure Browsing activated.

If you can't add your Facebook Page Tab application to a Page

People often report this problem, and the cause will likely be one of the following:

  • You've already added the App to your Page: Click the "Edit page" button at the top-right of your Page; then click "Apps" in the left column of the admin area; look for your Page Tab app; click "Edit settings" and make sure that in the popup dialog it says "Added (remove" and NOT "Available (add)";
  • You're not an admin of the Page to which you want to add the App;
  • Under the App's "Settings > Advanced" area, you have set "Authentication > Sandbox Mode" to "enabled"; this restricts the ability to add the App to a Page to only the App's developers;
  • It's a Facebook bug/glitch: Yes, this could be the cause.

Error messages from your server (error 405 - HTTP verb or similar)

If your server returns an error when Facebook tries to load the HTML page into the iFrame, you may need to change the file extension from .html to .php or .aspx (depending on the server platform you are using). When Facebook loads the iFrame, they do a POST to the index page in order to pass some data to your application and it looks like some servers are set up to not allow a POST to a file with the .html extension. We will be taking a look at how to access the data that Facebook passes in the next tutorial, but I wanted to mention this now since it caused issues for some people.

API Error Code: 191 Popup Dialog

If you get the "API Error Code: 191" popup dialog error:
Facebook API Error Code 191 - Dialog Popup

when using an embedded Share Button or other feature that requires the Facebook JavaScript SDK, it's may be because you haven't specified the "App on Facebook" URLs. See above for details.

Scroll Bars - Getting rid of them!

If your iFrame content causes a horizontal scroll bar to appear, something is causing the width to exceed 520 pixels, which is the maximum that Facebook allows. Read our tutorial on troubleshooting and eliminating the iFrame scrollbars.

We recommend adding some CSS (either inline as shown below or in your separate CSS file) to remove margin, padding, and border from elements by default. Many browsers add spacing around certain elements by default which can cause the scrollbars to appear unexpectedly.

<style type="text/css">
body {
width:520px;
margin:0; padding:0; border:0;
}
</style>

Next Steps

Up next: Creating a Reveal Tab on an Facebook iFrame application using the PHP SDK

We would love to hear what you would like to see in this series -- If you would like to know how to do something specific using iFrame applications, just note it in the comments and we will see what we can do.

absolutely fucking insane!

utorial: Add an iFrame Application to your Facebook Fan Page - Fall 2012 Tuesday, November 1st, 2011, 4:07 pm in Share 6 Updated Tutorial: Fall 2011 Facebook has been very busy updating how things are done, and one of the changes is how you create an iFrame application tab. Although the concept is p ...»See Ya

January 4, 2011

What is insalubrious Facebook 'Dogmeat 190502347629977' AND Why does SATAN 'LIKE' it?!



What is insalubrious Facebook 'Dogmeat 190502347629977' AND Why does SATAN 'LIKE' it?!





What is

insalubrious

Facebook

'Dogmeat 190502347629977'


AND

Why does SATAN

Like


it?!

see:
What is insalubrious Facebook 'Dogmeat 190502347629977' - Wordnik List http://t.co/LgEikQd via @Wordnik

What is insalubrious Facebook 'Dogmeat 190502347629977'

dogmeat
Gaejang Guk used this
Please note:Your ad's body may not meet our guidelines for standard and proper spacing.
Your ad should not use words that are longer than twenty characters.



Wordnik.com: What is insalubrious Facebook 'Dogmeat 190502347629977'

What is insalubrious Facebook 'Dogmeat 190502347629977' AND Why does SATAN Like it?! Dogmeat 190502347629977 "Dogmeat 190502347629977" is the Facebook "App" (blog) which enables CONNEXION to DOGMEAT and YOUR FB WALL + Gaejang Guk used this Please note:Your ad's body may not meet our guidelines for standard and proper spacing. Your ad should not use words that are longer than twenty characters. View sentence structure guidelines Dogmeat 190502347629977 "Dogmeat 190502347629977" is the Facebook "App" (blog) which enables CONNEXION to DOGMEAT and YOUR FB WALL Dogmeat 190502347629977 Insights › Dogmeat 190502347629977 Current Picture Back to editing Dogmeat 190502347629977 * http://www.facebook.com/apps/application.php?id=190502347629977 * Category:Entertainment (sub-category):Media * Developer Information:Company * Company Name:Dogmeat * Company Website:http://whatgetsmehot.posterous.com/ * About the Company: Dogmeat 190502347629977 http://www.facebook.com/apps/application.php?id=190502347629977 is the Facebook Application which enables connection to your Facebook Wall "Dogmeat 190502347629977" Facebook "App" (blog) which enables CONNEXION to DOGMEAT and your FB WALL http://whatgetsmehot.posterous.com App ID 190502347629977 API Key eb100e2fe0bb9f29f1e9a22e9fc7499c Site URL http://whatgetsmehot.posterous.com/ Site Domain posterous.com Canvas Page http://apps.facebook.com/dogmeat-can/ Canvas URL http://whatgetsmehot.posterous.com/ Canvas FBML/iframe iframe Deauthorize URL http://whatgetsmehot.posterous.com/ Contact Email gaejang.guk@gmail.com Support Email gaejang.guk@gmail.com App Description http://www.facebook.com/apps/applicati on.php?id=190502347629977 Category:Entertainment (sub-category):Media Developer Information:Company Company Name:Dogmeat Company Website:http://whatgetsmehot.posterous .com/ Dogmeat-Pages http://www.facebook.com/pages/Dogmeat-Pages/171924772843107 is the FB Fan Page which represents Dogmeat (Posterous) Blog http://whatgetsmehot.posterous.com/ on Facebook Insights ›http://www.facebook.com/insights/?sk=do_378507020372 whatgetsmehot.posterous.com whatgetsmehot.posterous.com Why Facebook is the DEVIL! after the lake of Lethe

Dogmeat 190502347629977

Insights Dogmeat 190502347629977

Current Picture

Back to editing Dogmeat 190502347629977


  • http://www.facebook.com/apps/application.php?id=190502347629977
  • Category:Entertainment (sub-category):Media
  • Developer Information:Company
  • Company Name:Dogmeat
  • Company Website:http://whatgetsmehot.posterous.com/
  • About the Company:


Dogmeat 190502347629977 http://www.facebook.com/apps/application.php?id=190502347629977 is the Facebook Application which enables connection to your Facebook Wall
"Dogmeat 190502347629977" Facebook "App" (blog) which enables CONNEXION to DOGMEAT and your FB WALL

http://whatgetsmehot.posterous.com

App ID
190502347629977
API Key
eb100e2fe0bb9f29f1e9a22e9fc7499c
Site URL
http://whatgetsmehot.posterous.com/
Site Domain
posterous.com

Canvas Page
http://apps.facebook.com/dogmeat-can/
Canvas URL
http://whatgetsmehot.posterous.com/
Canvas FBML/iframe
iframe
Deauthorize URL
http://whatgetsmehot.posterous.com/
Contact Email
gaejang.guk@gmail.com
Support Email
gaejang.guk@gmail.com
App Description
http://www.facebook.com/apps/applicati on.php?id=190502347629977 Category:Entertainment (sub-category):Media Developer Information:Company Company Name:Dogmeat Company Website:http://whatgetsmehot.posterous .com/
Dogmeat-Pages
http://www.facebook.com/pages/Dogmeat-Pages/171924772843107 is the FB Fan Page which represents Dogmeat (Posterous) Blog http://whatgetsmehot.posterous.com/

on Facebook

Insights http://www.facebook.com/insights/?sk=do_378507020372 whatgetsmehot.posterous.com


Why Facebook is the DEVIL! after the lake of Lethe

June 6, 2010

Super Facebook Video Issue Day by Limbs AndThings

Limbs Andthings

how i dreaded this day, when I'd have to go back and tidy up your videos for you. I worked myself up to it all week...it was actually enjoyable.

 
Rusty Spur says, 'that's fine, just more for me...'

Limbs Andthings Most seductive women pout AND Who're these models with Bay Garnett AND can they leave us alone for a second?
Most seductive women pout Take Angelina Jolie’s pout, Halle Berry’s eyes and J-Lo’s nose, and you have the most seductive woman of all...

Limbs Andthings Most seductive women pout AND Who're these models with Bay Garnett AND can they leave us alone for a second?

Most seductive women pout Take Angelina Jolie's pout, Halle Berry's eyes and J-Lo's nose, and you have the most seductive woman of all time, according to a survey. 'Angelle L'Brook' is also made up of Kelly Brook's hair and body and Marilyn Monroe's white dress, created in the poll of more than ...

Limbs Andthings The Genius of Lady Gaga (2 hr. int.)
Lady Gaga, we have asked you to be the ninth participant in our series of In Camera interviews because, more than any other contemporary musician, your work feels inextricably connected to fashion. What function...


Limbs Andthings And All I got Was This Lousy T-Shirt: An Essay by David Mamet

* * * * * * * * * * Alice Does Vegas * * * * * * * * *

Object Fetish - SHOWstudio SHOWstudio · « Object Fetishes...These socks and shoes are a prime example of Prada'splay with attire. At first glance, there could be nothing sexy about
http://www.showstudio.com/project/objectfetish/shoes_socksHathaway

Limbs Andthings i captured her |



via Dogmeat

December 16, 2010

Facebook Connect NIGHTMARE Before Xmas (try integrating with Posterous!) ONLY! Payoff Below

We support different connection types for different objects. For example, you can get the list of all the people attending the Facebook Developer Garage at SXSW (ID #331218348435) by fetching https://graph.facebook.com/331218348435/attending?access_token=....

All of the different types of objects and connections we support are included in the Graph API reference documentation.


Authorization

The Graph API as such allows you to easily access all public information about an object. For example, https://graph.facebook.com/btaylor (Bret Taylor) returns all the public information about Bret. For example a user's first name, last name and profile picture are publicly available.

To get additional information about a user, you must first get their permission. At a high level, you need to get an access token for the Facebook user. After you obtain the access token for the user, you can perform authorized requests on behalf of that user by including the access token in your Graph API requests:

https://graph.facebook.com/220439?access_token=...

For example https://graph.facebook.com/btaylor?access_token=... (Bret Taylor) returns additional information about Bret Taylor.

The Graph API uses OAuth 2.0 for authorization. Please read the authentication and authorization guide which provides details of Facebook's OAuth 2.0 implementation, how to request permissions from a user and obtain an access token.

Getting an access token for a user with no extended permissions allows you to access the information that the user has made available to everyone on Facebook. If you need specific information about a user, like their email address or work history, you must ask for the specific extended permissions. You can learn about permissions you need, to access each property and connection of an object from the Graph API reference documentation.

Page impersonation

You can impersonate pages administrated by your users by requesting the "manage_pages" extended permission.

Once a user has granted your application the "manage_pages" permission, the "accounts" connection will yield an additional access_token property for every page administrated by the current user. These access_tokens can be used to make calls on behalf of a page. The permissions granted by a user to your application will now also be applicable to their pages.

Authenticating as an Application

To make administrative calls that do not require an active user (for example, retrieving analytics data or test users) you need to obtain an access token for your application. Read more about how to get an application access token here.


Reading

The Graph API allows you to read properties and connections of the Facebook social graph. You can use the API to read specific fields, get pictures of any object, introspect an object for metadata and get real-time updates on any changes.

Selection

By default, most object properties are returned when you make a query. You can choose the fields (or connections) you want returned with the "fields" query parameter. For example, this URL will only return the id, name, and picture of Ben: https://graph.facebook.com/bgolub?fields=id,name,picture

You can also request multiple objects in a single query using the "ids" query parameter. For example, the URL https://graph.facebook.com?ids=arjun,vernal returns both profiles in the same response.

The "ids" query parameter also accepts URLs. This is useful for finding IDs of URLs in the Open Graph. For example: https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/

Additionally, there is a special identifier me which refers to the current user. So the URL https://graph.facebook.com/me returns the active user's profile.

Pictures

You can render the current profile photo for any object by adding the suffix /picture to the object URL. For example, this will render your public profile photo:

<img src="https://graph.facebook.com/sobachemyaso/picture"/>

The same URL pattern works for all objects in the graph:

You can specify the picture size you want with the type argument, which should be one of square (50x50), small (50 pixels wide, variable height), and large (about 200 pixels wide, variable height): http://graph.facebook.com/sobachemyaso/picture?type=large.

Paging

When querying connections, there are several useful parameters that enable you to filter and page through connection data:

Introspection

The Graph API supports introspection of objects, which enables you to see all of the connections an object has without knowing its type ahead of time. To get this information, add metadata=1 to the object URL, and the resulting JSON will include a metadata property that lists all the supported connections for the given object. For example, you can see all the connections for the Developer Garage event above by fetching https://graph.facebook.com/331218348435?metadata=1. That outputs:

{ "name": "Facebook Developer Garage Austin - SXSW Edition", "metadata": { "connections": { "feed": "http://graph.facebook.com/331218348435/feed", "picture": "https://graph.facebook.com/331218348435/picture", "invited": "https://graph.facebook.com/331218348435/invited", "attending": "https://graph.facebook.com/331218348435/attending", "maybe": "https://graph.facebook.com/331218348435/maybe", "noreply": "https://graph.facebook.com/331218348435/noreply", "declined": "https://graph.facebook.com/331218348435/declined" } } }

The introspection feature is a useful and extensible way to find all the things your users are connected to.

Real-Time updates

Real-time updates provide you the ability to receive updates about all of your application's users, as their data changes. With such subscriptions, you can be confident that your cached data is correct without polling Facebook's servers, increasing the reliability of your application, and the responsiveness of your user experience.


Searching

You can search over all public objects in the social graph with https://graph.facebook.com/search. The format is:

https://graph.facebook.com/search?q=QUERY&type=OBJECT_TYPE

We support search for the following types of objects:

You can also search an individual user's News Feed, restricted to that user's friends, by adding a q argument to the home connection URL:

http://whatgetsmehot.posterous.com/facebook-connect-nightmare-before-xmas-try-in Friends: https://graph.facebook.com/me/friends?access_token=... News feed: https://graph.facebook.com/me/home?access_token=... Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=... Likes: https://graph.facebook.com/me/likes?access_token=... Movies: https://graph.facebook.com/m ... Dogmeat