SlideShare a Scribd company logo
1 of 48
Download to read offline
Ambrotypeにおける、Facebook連携方法




大井宏友
株式会社リクルートホールディングス メディアテクノロジーラボ
Agenda
• Media Technology Labsのご紹介
• Ambrotype
 • サービスのご紹介
 • Facebookとの連携方法について
リクルートグループ
リクルートGの実証実験機関

http://mtl.recruit.co.jp
MTL



                事業化
       新規事業開発

R&D
MTLのスマートフォンアプリ
cameran.in
ambrotype.com
toC向けの、

  スマートフォン向け

  ソーシャル⃝⃝

   グローバルな

   サービスを

速く沢山生み出しています。
http://ambrotype.com
1827年
約200年後
「写真撮影」は
 より⾝身近に
10%
20%
思い出
 の
所在...
Ambrotype
     =
「思い出アルバム」
Re-fetching
your photos
 from these
  serivices
Sort by
     date
“Automatically”
Notify a photo
   of your
 memories
     daily
= Serendipity
Communication
Make album
  by Face
recognition
Make
album
by Geo
Make a
Greeting Card
Make a
Greeting Card
写真を集める
思い出を整理理する
思い出に出会う
思い出コミュニケーション
Ambrotype: for your memories
Ambrotypeは
Facebookと連携して
なにやってるのか
Architecture




    Titanium
Titanium: JSでマルチOSのスマホアプリが
          作れる
Facebookとの連携



1.Facebookログイン
2.写真の取得
3.投稿
1. Facebookログイン

                  ①認証


      ③Fb Token

      ④Am Token


              ②Fb Token
TitaniumはFacebookコネクトが楽
• Ti.Facebookモジュールが標準でビルトイン!
Ti.Facebook.appid = '[YOUR APPID]';
// Permissions your app needs
Ti.Facebook.permissions = ['publish_stream'];
Ti.Facebook.forceDialogAuth = false; //SSO
Ti.Facebook.addEventListener('login', function(e) {
    if (e.success) {
        var aToken = Ti.Facebook.accessToken;
    } else if (e.error) {
        alert(e.error);
    } else if (e.cancelled) {
        alert("Canceled");
    }
});
Ti.Facebook.authorize();
TitaniumはFacebookコネクトが楽
• Ti.Facebookモジュールが標準でビルトイン!
Ti.Facebook.appid = '[YOUR APPID]';
// Permissions your app needs
Ti.Facebook.permissions = ['publish_stream'];
Ti.Facebook.forceDialogAuth = false; //SSO
Ti.Facebook.addEventListener('login', function(e) {
    if (e.success) {
        var aToken = Ti.Facebook.accessToken;
    } else if (e.error) {
        alert(e.error);
    } else if (e.cancelled) {
        alert("Canceled");
    }
});
Ti.Facebook.authorize();
TitaniumはFacebookコネクトが楽
• Ti.Facebookモジュールが標準でビルトイン!
Ti.Facebook.appid = '[YOUR APPID]';
// Permissions your app needs
Ti.Facebook.permissions = ['publish_stream'];
Ti.Facebook.forceDialogAuth = false; //SSO
Ti.Facebook.addEventListener('login', function(e) {
    if (e.success) {
        var aToken = Ti.Facebook.accessToken;
    } else if (e.error) {
        alert(e.error);
    } else if (e.cancelled) {
        alert("Canceled");
    }
});
Ti.Facebook.authorize();
TitaniumはFacebookコネクトが楽
• Ti.Facebookモジュールが標準でビルトイン!
Ti.Facebook.appid = '[YOUR APPID]';
// Permissions your app needs
Ti.Facebook.permissions = ['publish_stream'];
Ti.Facebook.forceDialogAuth = false; //SSO
Ti.Facebook.addEventListener('login', function(e) {
    if (e.success) {
        var aToken = Ti.Facebook.accessToken;
    } else if (e.error) {
        alert(e.error);
    } else if (e.cancelled) {
        alert("Canceled");
    }
});
Ti.Facebook.authorize();
2. 写真の取得


           ②処理
                 ①GET
2. 写真の取得
1.自分のアルバム一覧を取得

2.アルバム毎に入っている写真を取得

3.位置情報がついている場合、その情報を取得


• FQL爆速!
 • とにかく高速
 • 全件取れる(他のサービスはリミットが少ない)
2. 写真の取得
• FQLはこんな感じ
 SELECT pid, caption, src, src_big, created,
 modified, place_id, link, src_small_width,
 src_small_height, src_big_width, src_big_height,
 object_id, like_info, comment_info FROM photo
 WHERE aid IN (SELECT aid FROM album WHERE
 owner=me())
• Restfb(http://restfb.com)を利用
 FacebookClient facebookClient = new
 DefaultFacebookClient("facebookのトークン");

 List<JsonObject> faceBookPhotos =
 facebookClient.executeQuery(SELECT_OWN_ALL_PHOTO
 S, JsonObject.class);
3. 投稿


               ②URL生成
        ①Req            ③API
3. 投稿
fbparams = new Parameter[] {
 Parameter.with("message", comment),
 Parameter.with("picture", pictureUrl),
 Parameter.with("link", url),
 Parameter.with("name", name),
 Parameter.with("privacy", "{"value":"" +
perm+ ""}")
};

String publishMessageResponse =
 facebookClient.publish(
 "me/feed", String.class, fbparams

);
はまったところ



• Facebookの仕様が複雑で分かりにく
い。
•feedで結構ハマった
はまっているところ


• 写真のURLが変わる!?
•FQLのレスポンスURLをそのままDBに突っ込ん
でる筈なのに、古くなるとURLが変わっていて
Not Foundになってしまう。
 •懇親会でPlease Help Me!
ステッカーあります。

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Ambrotypeにおける、Facebook連携方法