Elance Facebook (Development) Test Answers



A Facebook app should have:
Usefulness
All of these
Convenience
Importance in idea


Running the query "SELECT uid2 FROM friend WHERE uid1=me()" will GET
/fql?q=SELECT+uid2+FROM+action+WHERE+uid1=me()&access_token=...
/fql?q=SELECT+uid2+FROM+object+WHERE+uid1=me()&access_token=...
/fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()&access_token=...
/fql?q=SELECT+uid2+FROM+actor+WHERE+uid1=me()&access_token=...


What does an access token identify?
App or page
User, App or Page
Only the app
Only the user


True or False? You may publish a photo on a user's timeline with an access token.
False
True


Facebook Chat supports Facebook Platform authentication using the ___________ authentication mechanism
XEP-0022
X-FACEBOOK-PLATFORM SASL
XEP-0085
DIGEST-MD5


You can issue a HTTP GET request to /fql?q=query where query can be a single fql query or a JSON-encoded dictionary of queries.
FALSE
True


True or False? Other Facebook users can translate your application into other languages.
False
True


How does Facebook chat differ from what you would expect from a traditional XMPP service
All of these
The user's own Jabber ID (JID) is different from the Jabber ID that their contacts will see because the translation is done internally.
Your client cannot send or receive HTML messages
Because roster items and presence subscriptions are based on the user's Facebook friends, they cannot be created or deleted using the standard XMPP mechanisms.


What does the 'Registration plugin' do?
Let users easily sign up for your website with their Facebook account
Let developers register users on to their application
Let developers search for their targeted audience
Let developers easily sign up for an application


True or False? One ad user may have multiple ad accounts.
True
False


In the Ads API, which targeting option is not available
Children
Likes and Interests
Demographics and events
Education and workplace


FQL stands for:
FAST Query Language
Facebook Query Link
Front Query Language
Facebook Query Language


True or False? You can read recent page posts with the 'like box'.
False
True


FBJS stands for:
Facebook Jquery Script
Facebook Java Server
Facebook Java Standard
Facebook Javascript


Which of these generate access tokens?
Only App Secret
User ID
App Secret and App ID
Only App ID


What type of requests can be sent from a Facebook App?
Only app-generated requests
Group-generated requests and app-generated requests
Only user-generated requests
User-generated requests and app-generated requests


True or False? Facebook uses Etags
False
True


True or False? Access tokens do not expire.
True
False


True or False? When a user logs into an app, the app automatically gets access to their public profile and friend list.
True
False


FBML stands for:
Facebook Markup Language
Facebook Makeup Language
Facebook Mass Locator
Facebook Markup Link
Facebook Maintenance Language


What APIs does Facebook offer
Graph API, Open Graph, Dialogs, Chat, Ads API
Graph API, Facebook Authentication, Ads API
Graph API, FQL, Open Graph, Dialogs, Chat, Ads API
Graph API, Open Graph, Dialogs, Ads API


A user must have a Facebook username to use DIGEST-MD5
True
FALSE


Object properties in Open Graph are defined as:
op:
p:
og:
o:


How is the registered return URL used in OpenID Connect?
The developer should pass the exact reverse URL during the authorize call.
The developer should pass the exact IPN during the authorize call.
The developer should pass the exact return URL during the authorize call.
The developer should pass the exact notify URL during the authorize call.


Instead of calling one of the static openActiveSession* methods, your app can achieve the same flow by:
Calling one of the FBSession instance init functions.
Calling one of the FBSession instance open functions if the state value is FBSessionStateCreated.
All of these
Checking if the state value has transitioned to FBSessionStateCreated.


When you run your ad or sponsored story you will be only charged for the number of:
Clicks
Impressions
Views
Active days


Applications on Facebook are loaded on to a:
Blank page
White page
Canvas board
Canvas page


Where is the App ID located?
App Dashboard - bottom of the advanced settings page
App Dashboard - bottom of the basic settings page
App Dashboard - top of the advanced settings page
App Dashboard - top of the basic settings page


Which fields are used to create an account in the Ad Account API?
bodylink, creativehash, imageURL, name
name, IPAddressmasked, user_agent, country
access_token, currency_id, name, timezone_id
requestID, usermatchID, userContext, pageContext


What should you NOT do when customizing user experiences
Requiring all user's to log in immediately when using your app
Send users where they want to go in the app
Customize the experience according to their user profile
Show content right away


Your instant messaging client connects to Facebook Chat via the ____ service.
Jabber/XMPP
MPPS
EIM/CIM
SMS


What authentication does Facebook use?
OAuth4.1
OAuth1.0
OAuth3.2
OAuth2.0


When is an access token only valid for 2 hours?
Android
Server-side login flow
iOS
Client-side auth flow


Facebook provides SDKs for ____
iOS, Android, Blackberry, SMS, and the web
iOS and the web
iOS, Android, Blackberry, SMS, Leaf Socket, and the web
iOS, Android, and the web


Common Dialog Parameters are:
e_id, app_id, redirect_url
app_id, redirect_uri, display
display_id, redirect_uri, error_message
fb_id, display, redirect_url


What does en_US mean
Maps = US
Places = US
Events = US
Language will be English


True or False? Every application needs an application details page.
False
True


If your application does this, you must use Facebook Platform authentication instead of Facebook Chat
Reports messages or any other information about user activity to a third party (including the client developer).
Integrates with Facebook, or has a Facebook Application ID.
Proxies the XMPP connection (the connection must be directly from the user's computer to Facebook).
All of these


How can you get current sessions user's profile via the Graph API in PHP?
$facebook->api('/user');
$facebook->api('/profile');
$facebook->api('/getProfile');
$facebook->api('/me');


What query language do Facebook applications use?
FBSQL
FQL
FBQL
SQL


What is the correct API endpoint to retrieve Facebook Posts for the logged in user
/me/stream
/me/feed
/user/feed
/user/posts
/4/feed


What is an 'access token' ?
String that provides temporary, secure access to Facebook
String that provides temporary, unsecure access to Facebook APIs
String that provides permanent, secure access to Facebook APIs
String that provides temporary, secure access to Facebook APIs


Which one of these are publicly available when a user accesses your app?
first_name
last_name
All of these
id


What is the current way to retrieve posts from an open Facebook Group?
GET /groups/{group_id}/stream
GET /{group_id}/feed
GET /groups/{group_id}/feed
It's not possible to retrieve posts from a group
GET /{group_id}/stream


In Graph API 2.0, what is the current way to get tag friends in stories (e.g. status update or actions)?
Including {@[USERID]} in the message or caption when posting the story
Getting friends' ID from /me/taggable_friends, and posting the ID using "tags" parameter
Getting friends' ID from /me/friends, and posting the ID using "tags" parameter
Including [@[USERID]] in the message or caption when posting the story
Getting friends' ID from /me/invitable_friends, and posting the ID using "tags" parameter


What is the data format to refund a completed payment?
FBML
FQL
XML
JSON


The primary way to get data in and out of Facebook is by using a:
FQL
Developer's API
Graph API
Social API


How do you get a User id in PHP API?
$user_id = $facebook->getUser();
$user_id = $facebook->getUser_ID();
$user_id = $facebook->getProfile();
$user_id = $facebook->getUserID();
$user_id = $facebook->getUser_Profile_ID();


The most efficient way to manage ads on the Ads API is via:
Salted data
Batched requests
Hashed queries
Bundled campaigns


How can you get user_id of current session user using graph api in PHP (consider $facebook as the Facebook object)?
$facebook->getCurrentUser();
$facebook->getuser();
$facebook->getUser();
$facebook->getMe();


What are the three elements of Facebook's social design?
Conversation, Community, Development
Community, Interaction, Development
Conversation, Interaction, Development
Community, Conversation, Identity


Which of these is unacceptable for an app detail page submission?
Images with not enough text
Banners that have a white background
Banners that have a yellow background
Banners that have a black background


Which of these statements is true?
The Facebook JavaScript SDK is available in English only.
The Facebook JavaScript SDK is available in English, Spanish, French, German, Portuguese, ad Chinese only.
All of these
The Facebook JavaScript SDK is available in all locales supported by Facebook.


Which of these is not an option for targeting ads?
Workplace
Interests
Relationship status
Photos


What does the Share Dialog do?
Gives access to the Facebook social graph, uniformly representing objects in the graph and the connections between them. Most other APIs at Facebook are based on the Graph API.
Let's apps tell stories on Facebook through a structured, strongly typed API
Enables you to use a SQL-style interface to query the data exposed by the Graph API. It provides for some advanced features not available in the Graph API such as using the results of one query in another
Supports status updates, link shares and publishing Open Graph actions


How many tables can the FQL FROM clause contain?
4096
1024
Unlimited
One


When mentioning users in notifications, which syntax should you use?
({USER_ID})
(@USER_ID)
([USER_ID])
(@[USER_ID])


Applications that send over 500,000 notifications are required to maintain a weekly Click-To-Impression percentage of:
12%
17%
15%
10%


hCalendar and hCard are examples of:
Megaformats
Formats
Microformats
Applications


What are the four elements of a story on Open Graph?
Subject, Conflict, Climaz, and Resolution
Actor, App, Action, and Object
None of these
Application, Authentication, Action, and Object


adaccount, adaccountgroup, adcampaign, adcreative, adgroup, adimage, and aduser are examples of what?
Graph API Queries
Ad Statistics Query Results
Graph API Objects
Ad Account Query Results


Which of the following describes the action type that is associated with the creation of the object?
Object action
Word action
Creative action
Creation action


What are the three different ways of implementing the 'Like' button?
HTML5, FBML and JavaScript
HTML5, XFBML and iframe
HTML5, FBML, iframe
HTML5, XFBML and FQL


Which of these statements is true?
If you create your app using the English (U.S.) locale, the App Center will display its details (its tagline, description, detailed description and explanations about requested permissions) about it only in English, no matter who is using the App Center
If you create your app using the English (U.S.) locale, you must set the primary language you want the App Center to use when displaying its details (its tagline, description, detailed description and explanations about requested permissions).
None of these
If you create your app using the English (U.S.) locale, the App Center will display its details (its tagline, description, detailed description and explanations about requested permissions) in the language set by the user.


How is Click-To-Impressions (CTI) calculated?
Total clicks over the last seven days / total impressions over the last seven days
Total impressions over the last seven days/ Total clicks over the last seven days
Total impressions over the last 10 days/ Total clicks over the last 10 days
Total clicks in one day / total impressions in one day


Your application should not send notifications to users who have not visited your application in the last:
15 days
25 days
28 days
30 days


Which of these statements is not true of queries in the FQL API?
Your query must be indexable, meaning that it queries properties that are marked as indexable in the documentation below.
You can use the IN keyword in SELECT or WHERE clauses to do subqueries, but the subqueries cannot reference variables in the outer query's scope
FQL can handle simple math, basic boolean operators, AND or NOT logical operators, and ORDER BY and LIMIT clauses. ORDER BY can contain only a single table.
You can use the IN keyword in SELECT or WHERE clauses to do subqueries, and can reference variables in the outer query's scope


What does this query do? SELECT uid, name, pic_square FROM user WHERE uid = me() OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
Returns user profile information from the active user and friends
Fetches pictures and tags from the active user and friends
Fetches timeline information from the active user and friends
Fetches all user information for the active user and friends


Is Facebook Markup Language used to create applications?
Sometimes, depending on the Facebook application
Yes, applications must use Facebook Markup Language
Never
Not anymore, but it did at one point


To how many countries can you set a Facebook ad to target?
30
5
25
Unlimited


In the Ads API, which Graph API Queries are available?
Broad Target Categories, Connection Objects, Reach Estimate, Autocomplete Data
Connection Objects, Ad Statistics, Keyword Stats, Reach Estimate, Autocomplete Data
Broad Target Categories, Connection Objects, Ad Statistics, Keyword Stats, Reach Estimate, Autocomplete Data
Broad Target Categories, Connection Objects, Ad Statistics, Keyword Stats, Reach Estimate, Mobile, Facebook Connections


What is the function of "Open Graph"?
Display Facebook stories
Count Click-To-Impressions
Create graphs on applications
Graph user's activity on a specific application


True or False? The time stamp on Facebook pages are in UNIX format.
False
True

No comments:

Post a Comment