「適応障害になってしまって退職をしたい…。でもこれってただの逃げなのかな」 適応障害は人によって症状が違うため、なかなか周りに理解がされにくく、苦しいですよね。 「このまま仕事を続けられそうに…
Facebook は Login with Facebook という機能を提供してくれてて 手元のウェブサービスに Facebook を使ってログインすることができますね。 日本語表示だと「Facebook でログイン」というやつ。 本家から便利なツールも提供されていて かなり簡単に使えるようになってるんだけど、 最初は少し戸惑うかもしれないので使い方をまとめておきます。 やり方もできることもいっぱいあると思いますが 簡単だと思われるやり方と、最も基本的な機能を中心に。 やりたいこと ウェブサービスのページ上にこういうボタンか 専用のボタンまたはリンクが表示されていて ユーザーがこれをクリックするといったん Facebook に飛び そこで承認ボタンを押したら元のページに帰ってきて その時点でウェブサービスがユーザーの ID や名前などを取得できるというの。 以下、手順です。 Facebo
この記事は1年以上前の記事のため、内容が古い可能性があります。 メモ。主に解説サイトの紹介。 なんとなく分かりづらいタイトルですが、自分が今Facebookにログインしているとして、とあるサイトにアクセスしたときに、自分の基本データが収集される・・・あれ?何かすごい恐ろしいこと書いているような・・・^^; まあ何のために取得するかというと、サイト運営者それぞれに理由があると思いますが、信頼できるユーザかどうか(スパムではないかという意味)を調べたり、二重投稿などを防ぐために必要だったりします。 この基本データというのはいわゆる「プロフィール」なので、Facebookにログインしている状態ならば誰でも見れるものではあるのですが、とはいえ勝手に収集されてはかないません。 というわけで、当然ながら勝手に情報を収集できるわけがなく、そのサイトがユーザの基本データを得るには、訪れたユーザに「取得して
2012年06月29日 PHP:Facebookアプリの認証でハマった(修正) ※頂いたコメントで万事解決したので大幅に修正。 混乱の元なので、間違っていた部分は削除しました。 ちょっと試してみたいことがあるので、新しくFacebookアプリを登録してたら思わぬところでハマりました。 基本的には以前作ったソースをコピペしてきて、さあログイン処理だと思ったら・・・ なぜか以下のようなエラーが出る。 ◯◯でエラーが発生しました。しばらくしてからもう一度お試しください。 API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: Invalid redirect_uri: 指定されたURLは、アプリケーションの設定で許可されていません。 いつ
リニューアルと同時に、Facebook ページを作ってみたんですが、タブ追加機能を使って、Facebook ページにアクセスした際に最初に表示されるページをカスタマイズしてみましたので、その作り方や設定方法などを簡単にご紹介。恒例(謎)の 5分でわかるシリーズ。 Facebook ページは iframe を使用して、外部のサーバにあるコンテンツを比較的簡単に読み込める仕様になっていますが、これを利用することでオリジナルのページを自分の Facebook ページにタブとして表示することができます。 Facebook ページにオリジナルのページを読み込むには、最低限下記の準備が必要です。 Facebook ページの開設 (当たり前ですが) Facebook への開発者登録 外部に公開された PHP が動作する Web サーバ (共有で構わないので SSL が利用できる必要あり ※後述) コンテ
スマートウォッチはさまざまなブランドから発売されており、とても注目を集めています。しかし、具体的にどのような機能があるのか分からない方もいるでしょう。また数多くの種類があり、どれを選ぶか迷う方も多いですよね。そこで今回は、スマートウォッチの基本的な機能や、おすすめのブランド・商品についてご紹介します。 #健康管理 多くのスマートウォッチには、歩数を計測する機能があります。その機能を使用すれば歩数やカロリーなどが計算できて、健康管理に役立つでしょう。 #通知機能 メールやSNS(Faceboook、Twitter、Instagramなど)の通知を受け取ることができます。会議中や食事中などでも気軽に確認できるでしょう。 #電子マネー決済 対応しているスマートウォッチであれば、さまざまな電子マネー決済が使用できます。財布を取り出さなくてもいいため非常に便利です。 #音楽再生 スマホをカバンやポケ
映画「ソーシャルネットワーク」を見て創作意欲が湧き、コードが書きたくなったwatanabeです。 今年はFacebook元年と言われており、Facebookを利用した販促や広告、キャンペーンなどが増えてくるでしょう。 その中でよく使われそうな「アルバムへの投稿」をピックアップして、実装してみました。 今回はFacebookのPHPのSDKを利用します。 https://github.com/facebook/php-sdk/ SDKならソーシャルグラフAPIを使うと便利です。 Graph API Reference 折角なので、FQLも使ってみましょう。 http://developers.facebook.com/docs/reference/fql/ 早速、日曜大工的にコードを書いてみたので、見てみましょう。 クラス <?php include('lib/facebook.php');
Facebook PHP SDKのapiメソッドに”/me/likes/ページID”を渡します。 例では、コカ・コーラのFacebookページを「いいね!」したかどうかを判定しています。 require 'src/facebook.php'; $facebook = new Facebook(array( 'appId' => 'Your App ID', 'secret' => 'Your Secret', )); $user = $facebook->getUser(); if ($user) { try { $likes = $facebook->api('/me/likes/40796308305'); if (!empty($likes['data'])) // いいね!済み else // いいね!してない } catch (FacebookApi
オリジナルはココです。フェイスブックのエンジニアでで史上ベスト3に入るといわれるEvan Priestley氏への質問「どうやってプログラミングを覚えましたか」に対する本人からの答えです。 手短かに言えば 何年もの歳月の賜物というか。ぼくはただひたすらプログラミングが大好きで、(フェイスブックで働いていた)過去4年間、ほとんど他のことをしていない。その前も2.5年ほどプログラマーとして働いていたし、そのさらに前も6年くらい趣味でプログラミングをしていた。ぼくは高校も大学も中退しているので、それで空いた時間もプログラミングに費やした。つい最近フェイスブックを辞めたけど、未だに起きている時間のほとんどはプログラミングだ。 もっと詳しく言えば 月並みだが、ぼくはちっちゃい頃からコンピューターが好きで、我が家にあったヤツで(最初はMac Plusで途中からIIsiになった)で散々遊んだ。8歳か9歳
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く