{"id":6455,"date":"2013-02-12T01:30:04","date_gmt":"2013-02-12T01:30:04","guid":{"rendered":"https:\/\/dev.railscarma.com\/how-to-get-user-information-from-facebook-to-rails-application\/"},"modified":"2021-06-07T08:00:44","modified_gmt":"2021-06-07T08:00:44","slug":"so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung","status":"publish","type":"post","link":"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung\/","title":{"rendered":"Wie bekomme ich Benutzerinformationen von Facebook zur Rails-Anwendung?"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"6455\" class=\"elementor elementor-6455\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-46d892ca elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"46d892ca\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11286f81\" data-id=\"11286f81\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6db6e1d6 elementor-widget elementor-widget-text-editor\" data-id=\"6db6e1d6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"text-align: justify;\">Mit Facebooks <em>Graph-API<\/em> und die Entstehung des <em>\u00d6ffnen Sie das Graph-Protokoll<\/em>, ist es jetzt einfacher als je zuvor, Daten von Facebook in die Rails-Anwendung und zur\u00fcck in den \u201eSocial Graph\u201c zu lesen und zu schreiben. Hier sind einige der M\u00f6glichkeiten:<\/p>\n\n<ul style=\"text-align: justify;\">\n \t<li style=\"text-align: justify;\">Sie k\u00f6nnten Ihre Webseite in eine Facebook-\u00e4hnliche Seite mit vollem Funktionsumfang umwandeln, genau so, als w\u00e4ren Sie bei Facebook.<\/li>\n \t<li style=\"text-align: justify;\">Sie k\u00f6nnen Ihren Benutzern die M\u00f6glichkeit geben, sich mit ihren Facebook-Anmeldeinformationen anzumelden und ihr Erlebnis mit Parametern aus ihren Facebook-Profilen anzupassen.<\/li>\n \t<li style=\"text-align: justify;\">Sie k\u00f6nnten ein hinzuf\u00fcgen <em>Wie<\/em> Klicken Sie auf die Schaltfl\u00e4che f\u00fcr jedes Objekt auf Ihrer Seite, z. B. Bilder, Lieder, Artikel usw., und teilen Sie Ihren Benutzern mit, welchen Freunden Ihre Inhalte gefallen haben.<\/li>\n<\/ul>\n<h4 style=\"text-align: justify;\" align=\"LEFT\"><strong>Schritte zum Erstellen einer Anwendung und zum Abrufen von Informationen<\/strong><\/h4>\n<p style=\"text-align: justify;\">Es werden eine Facebook-App-ID und ein API-Geheimschl\u00fcssel ben\u00f6tigt<\/p>\n<p style=\"text-align: justify;\">Gehe zum Link<\/p>\n<p style=\"text-align: justify;\">https:\/\/developers.facebook.com\/apps<\/p>\n\n<h5 style=\"text-align: justify;\">1. <strong>Neue App auf Facebook erstellen<\/strong><\/h5>\n<ul style=\"text-align: justify;\">\n \t<li>\n<p align=\"LEFT\">Geben Sie einen App-Namen an (Beispiel: sample_app).<\/p>\n<\/li>\n \t<li>\n<p align=\"LEFT\">Dann m\u00fcssen wir die folgenden Informationen eingeben<\/p>\n<\/li>\n \t<li>\n<p align=\"LEFT\">App-Dom\u00e4ne: localhost<\/p>\n<\/li>\n \t<li>\n<p align=\"LEFT\">Webadresse: <a href=\"http:\/\/localhost\/3000\/\">http:\/\/localhost\/3000\/<\/a><\/p>\n<p align=\"LEFT\"><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Auf derselben Seite finden wir App Id und App Secret. Es sieht aus wie<\/strong><\/p>\n<p style=\"text-align: justify;\">App-ID: 378271044441102<\/p>\n<p style=\"text-align: justify;\">App-Geheimnis: 567772fd2bef4dda7a404b02r4567c758<\/p>\n\n<h5 style=\"text-align: justify;\">2. <strong>Erstellen Sie eine Rails-Anwendung<\/strong><\/h5>\n<p style=\"text-align: justify;\"><strong> Im Folgenden sind die Schritte zum Erstellen aufgef\u00fchrt<a href=\"https:\/\/www.railscarma.com\/de\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Schienenanwendung<\/a><\/strong><\/p>\n\n<ul style=\"text-align: justify;\">\n \t<li>Schienen neue facebook_app<\/li>\n \t<li>sudo gem installiere fb_graph<\/li>\n \t<li>zu Gemfilegem \u201efb_graph\u201c hinzuf\u00fcgen<\/li>\n \t<li>Sudo-Bundle-Installation<\/li>\n \t<li>Erstellen Sie eine Indexseite f\u00fcr fb_loginrails, um einen Controller-Seitenindex zu generieren<\/li>\n \t<li>Setzen Sie den Index auf die Stammseite in config\/routes.rbroot :to =&gt; \u201epages#home\u201c<\/li>\n \t<li>Authentifizierung f\u00fcr App erstellen (einfache Authentifizierung)<\/li>\n \t<li>Erstellen eines Facebook-Controllers und eines Facebook-Modells mit :Identifier =&gt; string:access_token =&gt;string<\/li>\n \t<li>Schienen generieren Ger\u00fcst-Facebook-Kennung: Zeichenfolge Zugriffstoken: Zeichenfolge<\/li>\n \t<li>Schienen generieren eine Controller-Dashboard-Anzeige<\/li>\n \t<li>Im Seiten-Controller leiten Sie die Seite zu \u201edashboard:show\u201c um, wenn sie bereits authentifiziert ist \u2013 \u201econtroller\/pages_controller.rb\u201c.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\" align=\"LEFT\">Def-Index<\/p>\n<p style=\"text-align: justify;\" align=\"LEFT\">Redirect_to Dashboard_URL, wenn authentifiziert?<\/p>\n<p style=\"text-align: justify;\" align=\"LEFT\">Ende<\/p>\n<p style=\"text-align: justify;\">Wenn keine Authentifizierung erfolgt, wird root_path geladen, d. h. Seiten\/Index, erstellen Sie fb_login auf dieser Seite, um sie zu authentifizieren.<\/p>\n<p style=\"text-align: justify;\">&lt;% bei Authentifizierung? %&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;p&gt;&lt;%= link_to &ldquo;Logout&rdquo;, facebook_path, :method =&gt; :% l&ouml;schen&amp;gt;&lt;\/p&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;% sonst %&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;fb:login-button length=\u201dlong\u201d onlogin=\u201dlocation.href = \u2018 &#039;\u201cscope=\u201c&lt;%=<\/p>\n<p style=\"text-align: justify;\">Facebook.config[:scope] %&gt;\u201c&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;% Ende %&gt;<\/p>\n\n<h5 style=\"text-align: justify;\"><strong>3. F\u00fcgen Sie den folgenden Skriptcode ein (f\u00fcr die Facebook-Anmeldeschaltfl\u00e4che). <\/strong><\/h5>\n<p style=\"text-align: justify;\">&lt;script src=&#8221;https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/all.js&#8221;&gt;&lt;\/script&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;script&gt;<\/p>\n<p style=\"text-align: justify;\">FB.init({<\/p>\n<p style=\"text-align: justify;\">appId: \u201e&lt;%= Facebook.config[:client_id] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Cookie: wahr,<\/p>\n<p style=\"text-align: justify;\">xfbml: wahr,<\/p>\n<p style=\"text-align: justify;\">oauth: wahr,<\/p>\n<p style=\"text-align: justify;\">Status: wahr<\/p>\n<p style=\"text-align: justify;\">});<\/p>\n<p style=\"text-align: justify;\">&lt;\/script&gt;<\/p>\n<p style=\"text-align: justify;\">&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p style=\"text-align: justify;\">$(Funktion () {<\/p>\n<p style=\"text-align: justify;\">&lt;% wenn flash[:error] %&gt;<\/p>\n<p style=\"text-align: justify;\">$.gritter.add({<\/p>\n<p style=\"text-align: justify;\">Titel: \u201e&lt;%= flash[:error][:title] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Text: \u201e&lt;%= flash[:error][:message] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Bild: \u201e&lt;%= flash[:error][:image] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Zeit: 5000<\/p>\n<p style=\"text-align: justify;\">});<\/p>\n<p style=\"text-align: justify;\">&lt;% elsif flash[:notice] %&gt;<\/p>\n<p style=\"text-align: justify;\">$.gritter.add({<\/p>\n<p style=\"text-align: justify;\">Titel: \u201e&lt;%= flash[:notice][:title] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Text: \u201e&lt;%= flash[:notice][:message] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Bild: \u201e&lt;%= flash[:notice][:image] %&gt;\u201c,<\/p>\n<p style=\"text-align: justify;\">Zeit: 3000<\/p>\n<p style=\"text-align: justify;\">});<\/p>\n<p style=\"text-align: justify;\">&lt;% Ende %&gt;<\/p>\n<p style=\"text-align: justify;\">});<\/p>\n<p style=\"text-align: justify;\">&lt;\/script&gt;<\/p>\n<p style=\"text-align: justify;\">Der obige Code wird zur Authentifizierung des Benutzers \u00fcber Facebook verwendet. Nach der Authentifizierung sollte der Benutzer zur Dashboard-URL umleiten, um seine von Facebook abgerufenen Informationen anzuzeigen. Einige Facebook-Einstellungen sollten Code im Facebook-Modell und im Controller sein.<\/p>\n<p style=\"text-align: justify;\">In controller\/facebook_controller.rb.<\/p>\n<p style=\"text-align: justify;\">before_filter :require_authentication, :only =&gt; :destroy<\/p>\n<p style=\"text-align: justify;\">Rescue_from Rack::OAuth2::Client::Error, :with =&gt; :oauth2_error<\/p>\n<p style=\"text-align: justify;\"># verarbeitet das vom JavaScript SDK generierte Facebook-Authentifizierungs-Cookie<\/p>\n<p style=\"text-align: justify;\">auf jeden Fall zeigen<\/p>\n<p style=\"text-align: justify;\">auth = Facebook.auth.from_cookie(cookies)<\/p>\n<p style=\"text-align: justify;\">authentifizieren Facebook.identify(auth.user)<\/p>\n<p style=\"text-align: justify;\">Umleitung_zur Dashboard-URL<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">#-Handle Normaler OAuth-Fluss: Start<\/p>\n<p style=\"text-align: justify;\">auf jeden Fall neu<\/p>\n<p style=\"text-align: justify;\">client = Facebook.auth(callback_facebook_url).client<\/p>\n<p style=\"text-align: justify;\">Redirect_to client.authorization_uri(<\/p>\n<p style=\"text-align: justify;\">:scope =&gt; Facebook.config[:scope]<\/p>\n<p style=\"text-align: justify;\">)<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\"># verarbeitet normalen OAuth-Fluss: R\u00fcckruf<\/p>\n<p style=\"text-align: justify;\">auf jeden Fall erstellen<\/p>\n<p style=\"text-align: justify;\">client = Facebook.auth(callback_facebook_url).client<\/p>\n<p style=\"text-align: justify;\">client.authorization_code = params[:code]<\/p>\n<p style=\"text-align: justify;\">access_token = client.access_token! :client_auth_body<\/p>\n<p style=\"text-align: justify;\">user = FbGraph::User.me(access_token).fetch<\/p>\n<p style=\"text-align: justify;\">authentifizieren Facebook.identify(user)<\/p>\n<p style=\"text-align: justify;\">Umleitung_zur Dashboard-URL<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">auf jeden Fall zerst\u00f6ren<\/p>\n<p style=\"text-align: justify;\">nicht authentifiziert<\/p>\n<p style=\"text-align: justify;\">Umleitung_zur Root_URL<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Privat<\/p>\n<p style=\"text-align: justify;\">def oauth2_error(e)<\/p>\n<p style=\"text-align: justify;\">flash[:error] = {<\/p>\n<p style=\"text-align: justify;\">:title =&gt; e.response[:error][:type],<\/p>\n<p style=\"text-align: justify;\">:message =&gt; e.response[:error][:message]<\/p>\n<p style=\"text-align: justify;\">}<\/p>\n<p style=\"text-align: justify;\">Umleitung_zur Root_URL<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n\n<h5 style=\"text-align: justify;\"><strong>4. F\u00fcgen Sie diesen Code in facebook.rb ein<\/strong><\/h5>\n<p style=\"text-align: justify;\">Def-Profil<\/p>\n<p style=\"text-align: justify;\">@profile ||= FbGraph::User.me(self.access_token).fetch<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Klasse &lt;&lt; selbst<\/p>\n<p style=\"text-align: justify;\">ActiveSupport::Memoizable erweitern<\/p>\n<p style=\"text-align: justify;\">Def-Konfiguration<\/p>\n<p style=\"text-align: justify;\">@config ||= if ENV[&#039;fb_client_id&#039;] &amp;&amp; ENV[&#039;fb_client_secret&#039;] &amp;&amp; ENV[&#039;fb_scope&#039;] &amp;&amp; ENV[&#039;fb_canvas_url&#039;]<\/p>\n<p style=\"text-align: justify;\">{<\/p>\n<p style=\"text-align: justify;\">:client_id =&gt; ENV[&#039;fb_client_id&#039;],<\/p>\n<p style=\"text-align: justify;\">:client_secret =&gt; ENV[&#039;fb_client_secret&#039;],<\/p>\n<p style=\"text-align: justify;\">:scope =&gt; ENV[&#039;fb_scope&#039;],<\/p>\n<p style=\"text-align: justify;\">:canvas_url =&gt; ENV[&#039;fb_canvas_url&#039;]<\/p>\n<p style=\"text-align: justify;\">}<\/p>\n<p style=\"text-align: justify;\">anders<\/p>\n<p style=\"text-align: justify;\">YAML.load_file(\u201c#{Rails.root}\/config\/facebook.yml\u201d)[Rails.env].symbolize_keys<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Rettung Errno::ENOENT =&gt; e<\/p>\n<p style=\"text-align: justify;\">raise StandardError.new(\u201cconfig\/facebook.yml konnte nicht geladen werden.\u201d)<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Def-App<\/p>\n<p style=\"text-align: justify;\">FbGraph::Application.new config[:client_id], :secret =&gt; config[:client_secret]<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">def auth(redirect_uri = nil)<\/p>\n<p style=\"text-align: justify;\">FbGraph::Auth.new config[:client_id], config[:client_secret], :redirect_uri =&gt; restart_uri<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">auf jeden Fall identifizieren(fb_user)<\/p>\n<p style=\"text-align: justify;\">_fb_user_ = find_or_initialize_by_identifier(fb_user.identifier.try(:to_s))<\/p>\n<p style=\"text-align: justify;\">_fb_user_.access_token = fb_user.access_token.access_token<\/p>\n<p style=\"text-align: justify;\">_fb_user_.save!<\/p>\n<p style=\"text-align: justify;\">_fb_user_<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Ende<\/p>\n<p style=\"text-align: justify;\">Jetzt sind wir bereit, Benutzerinformationen abzurufen, wenn er sich authentifiziert hat. Sobald er sich authentifiziert hat, wird die Seite zu Dashboard_URL umgeleitet.<\/p>\n<p style=\"text-align: justify;\">Code in controller\/dashboard_controller.rb<\/p>\n<p style=\"text-align: justify;\">before_filter :require_authentication k<\/p>\n<p style=\"text-align: justify;\">Ansicht f\u00fcr Dashboard\/show.html.erb<\/p>\n<p style=\"text-align: justify;\">&lt;h2&gt;Benutzerprofil&lt;\/h2&gt;<\/p>\n<p style=\"text-align: justify;\"><dl><\/p>\n<p style=\"text-align: justify;\"><dt>Nutzername<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.username %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Name<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.name %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Vorname<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.first_name %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Zweiter Vorname<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.middle_name %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Familienname, Nachname<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.last_name %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Geschlecht<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.gender %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Verkn\u00fcpfung<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= link_to current_user.profile.link, current_user.profile.link %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Email<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.email %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Um<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.about %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Geburtstag<\/dt><\/p>\n<p style=\"text-align: justify;\"><dd>&lt;%= current_user.profile.birthday %&gt;<\/dd><\/p>\n<p style=\"text-align: justify;\"><dt>Arbeiten<\/dt><\/dl><\/p>\n<p style=\"text-align: justify;\">Der obige Code dient zur Anzeige von Benutzerinformationen.<\/p>\n\n<h5 style=\"text-align: justify;\"><strong>5. Erstellen Sie abschlie\u00dfend die Datei facebook.rb in der Konfiguration<\/strong><\/h5>\n<p style=\"text-align: justify;\">Entwicklung: &amp;defaults<\/p>\n<p style=\"text-align: justify;\">client_id: \u201eIhre Facebook-App-ID\u201c<\/p>\n<p style=\"text-align: justify;\">client_secret: \u201eFacebook-Geheim-ID\u201c<\/p>\n<p style=\"text-align: justify;\">Geltungsbereich: user_about_me,friends_about_me,user_activities,friends_activities,user_birthday,<\/p>\n<p style=\"text-align: justify;\">friends_birthday,user_checkins,friends_checkins,user_education_history,<\/p>\n<p style=\"text-align: justify;\">friends_education_history,user_events,friends_events,user_groups,friends_groups,<\/p>\n<p style=\"text-align: justify;\">user_hometown,friends_hometown,user_interests,friends_interests,user_likes,friends_likes,<\/p>\n<p style=\"text-align: justify;\">user_location,friends_location,user_notes,friends_notes,user_online_presence,<\/p>\n<p style=\"text-align: justify;\">friends_online_presence,user_photo_video_tags,friends_photo_video_tags,user_photos<\/p>\n<p style=\"text-align: justify;\">pr\u00fcfen:<\/p>\n<p style=\"text-align: justify;\">&lt;&lt;: *Standardwerte<\/p>\n<p style=\"text-align: justify;\">Produktion:<\/p>\n<p style=\"text-align: justify;\">&lt;&lt;: *Standardwerte<\/p>\n<a href=\"\/de\/kontaktiere-uns\/\">Nehmen Sie Kontakt mit uns auf.<\/a>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7bcee31a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7bcee31a\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1bc09471\" data-id=\"1bc09471\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-14116d08 elementor-widget elementor-widget-heading\" data-id=\"14116d08\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Abonnieren Sie die neuesten Updates<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-791fbfbd elementor-widget elementor-widget-shortcode\" data-id=\"791fbfbd\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t\t\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t\t\tvar gCaptchaSibWidget;\n                        var onloadSibCallbackInvisible = function () {\n\n                            var element = document.getElementsByClassName('sib-default-btn');\n                            var countInvisible = 0;\n                            var indexArray = [];\n                            jQuery('.sib-default-btn').each(function (index, el) {\n                                if ((jQuery(el).attr('id') == \"invisible\")) {\n                                    indexArray[countInvisible] = index;\n                                    countInvisible++\n                                }\n                            });\n\n                            jQuery('.invi-recaptcha').each(function (index, el) {\n                                grecaptcha.render(element[indexArray[index]], {\n                                    'sitekey': jQuery(el).attr('data-sitekey'),\n                                    'callback': sibVerifyCallback,\n                                });\n                            });\n                        };\n\t\t\t\t\t<\/script>\n\t\t\t\t\t                <script src=\"https:\/\/www.google.com\/recaptcha\/api.js?onload=onloadSibCallbackInvisible&render=explicit\" async defer><\/script>\n\t\t\t\t\n\t\t\t<form id=\"sib_signup_form_1\" method=\"post\" class=\"sib_signup_form\" action=\"\">\n\t\t\t\t<div class=\"sib_loader\" style=\"display:none;\"><img\n\t\t\t\t\t\t\tsrc=\"https:\/\/www.railscarma.com\/wp-includes\/images\/spinner.gif\" alt=\"Lader\"><\/div>\n\t\t\t\t<input type=\"hidden\" name=\"sib_form_action\" value=\"subscribe_form_submit\">\n\t\t\t\t<input type=\"hidden\" name=\"sib_form_id\" value=\"1\">\n                <input type=\"hidden\" name=\"sib_form_alert_notice\" value=\"Please fill out this field\">\n                <input type=\"hidden\" name=\"sib_form_invalid_email_notice\" value=\"Your email address is invalid\">\n                <input type=\"hidden\" name=\"sib_security\" value=\"a6180fbcb4\">\n\t\t\t\t<div class=\"sib_signup_box_inside_1\">\n\t\t\t\t\t<div style=\"\/*display:none*\/\" class=\"sib_msg_disp\">\n\t\t\t\t\t<\/div>\n                                            <div id=\"sib_captcha_invisible\" class=\"invi-recaptcha\" data-sitekey=\"6LdikOAaAAAAAJ6SWrrKVQrtw7TQpQAEnv0HS0G3\"><\/div>\n                    \t\t\t\t\t<p class=\"sib-email-area\">\r\n    <label class=\"sib-email-area\"><\/label>\r\n    <input type=\"email\" class=\"sib-email-area\" name=\"email\" required=\"required\" placeholder=\"E-Mail-Adresse\">\r\n<\/p>\r\n<p class=\"sib-NAME-area\">\r\n    <label class=\"sib-NAME-area\"><\/label>\r\n    <input type=\"text\" class=\"sib-NAME-area\" name=\"NAME\" placeholder=\"Name\">\r\n<\/p>\r\n<p>\r\n    <input type=\"submit\" id=\"invisible\" class=\"sib-default-btn\" value=\"Abonnieren\">\r\n<\/p>\t\t\t\t<\/div>\n\t\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"de\"\/><\/form>\n\t\t\t<style>\n\t\t\t\tform#sib_signup_form_1 p.sib-alert-message {\n    padding: 6px 12px;\n    margin-bottom: 20px;\n    border: 1px solid transparent;\n    border-radius: 4px;\n    -webkit-box-sizing: border-box;\n    -moz-box-sizing: border-box;\n    box-sizing: border-box;\n}\nform#sib_signup_form_1 p.sib-alert-message-error {\n    background-color: #f2dede;\n    border-color: #ebccd1;\n    color: #a94442;\n}\nform#sib_signup_form_1 p.sib-alert-message-success {\n    background-color: #dff0d8;\n    border-color: #d6e9c6;\n    color: #3c763d;\n}\nform#sib_signup_form_1 p.sib-alert-message-warning {\n    background-color: #fcf8e3;\n    border-color: #faebcc;\n    color: #8a6d3b;\n}\n\t\t\t<\/style>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t  <div class=\"related-post slider\">\r\n        <div class=\"headline\">zusammenh\u00e4ngende Posts<\/div>\r\n    <div class=\"post-list owl-carousel\">\r\n\r\n            <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Kaminari-Juwel\" href=\"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/kaminari-juwel\/?related_post_from=37277\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Kaminari-Juwel\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2023\/04\/kaminari-gem-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Kaminari-Juwel\" href=\"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/kaminari-juwel\/?related_post_from=37277\">\r\n        Kaminari-Juwel  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Warum sollte man im Jahr 2026 Ruby on Rails-Entwickler anheuern?\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/warum-sollte-man-ruby-on-rails-entwickler-engagieren\/?related_post_from=30627\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Warum sollte man im Jahr 2022 Ruby-on-Rails-Entwickler einstellen?\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2019\/01\/why-to-hire-ruby-on-rails-developers-in-2022-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Warum sollte man im Jahr 2026 Ruby on Rails-Entwickler anheuern?\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/warum-sollte-man-ruby-on-rails-entwickler-engagieren\/?related_post_from=30627\">\r\n        Warum sollte man im Jahr 2026 Ruby on Rails-Entwickler anheuern?  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Bedeutung der Softwarearchitektur in der Entwicklung von Unternehmenssoftware\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/bedeutung-der-softwarearchitektur-bei-der-entwicklung-von-unternehmenssoftware\/?related_post_from=36250\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/06\/Importance-of-Software-Architecture-in-enterprise-software-development.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"Bedeutung der Softwarearchitektur in der Entwicklung von Unternehmenssoftware\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/06\/Importance-of-Software-Architecture-in-enterprise-software-development.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/06\/Importance-of-Software-Architecture-in-enterprise-software-development-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/06\/Importance-of-Software-Architecture-in-enterprise-software-development-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Bedeutung der Softwarearchitektur in der Entwicklung von Unternehmenssoftware\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/bedeutung-der-softwarearchitektur-bei-der-entwicklung-von-unternehmenssoftware\/?related_post_from=36250\">\r\n        Bedeutung der Softwarearchitektur in der Entwicklung von Unternehmenssoftware  <\/a>\r\n\r\n        <\/div>\r\n              <div class=\"item\">\r\n            <div class=\"thumb post_thumb\">\r\n    <a  title=\"Ruby IDE: Die besten IDEs f\u00fcr die Ruby on Rails-Entwicklung\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/ruby-idee-die-besten-ideen-fur-die-ruby-on-rails-entwicklung\/?related_post_from=36125\">\r\n\r\n      <img decoding=\"async\" width=\"800\" height=\"300\" src=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/01\/BEST-IDES-FOR-RUBY-ON-RAILS-DEVELOPMENT.jpg\" class=\"attachment-full size-full wp-post-image\" alt=\"BESTE IDEEN F\u00dcR DIE RUBY ON RAILS-ENTWICKLUNG\" srcset=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/01\/BEST-IDES-FOR-RUBY-ON-RAILS-DEVELOPMENT.jpg 800w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/01\/BEST-IDES-FOR-RUBY-ON-RAILS-DEVELOPMENT-300x113.jpg 300w, https:\/\/www.railscarma.com\/wp-content\/uploads\/2022\/01\/BEST-IDES-FOR-RUBY-ON-RAILS-DEVELOPMENT-768x288.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\r\n\r\n    <\/a>\r\n  <\/div>\r\n\r\n  <a class=\"title post_title\"  title=\"Ruby IDE: Die besten IDEs f\u00fcr die Ruby on Rails-Entwicklung\" href=\"https:\/\/www.railscarma.com\/de\/blog\/ror\/ruby-idee-die-besten-ideen-fur-die-ruby-on-rails-entwicklung\/?related_post_from=36125\">\r\n        Ruby IDE: Die besten IDEs f\u00fcr die Ruby on Rails-Entwicklung  <\/a>\r\n\r\n        <\/div>\r\n      \r\n  <\/div>\r\n\r\n  <script>\r\n      <\/script>\r\n  <style>\r\n    .related-post {}\r\n\r\n    .related-post .post-list {\r\n      text-align: left;\r\n          }\r\n\r\n    .related-post .post-list .item {\r\n      margin: 10px;\r\n      padding: 10px;\r\n          }\r\n\r\n    .related-post .headline {\r\n      font-size: 14px !important;\r\n      color: #999999 !important;\r\n          }\r\n\r\n    .related-post .post-list .item .post_thumb {\r\n      max-height: 220px;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n          }\r\n\r\n    .related-post .post-list .item .post_title {\r\n      font-size: 14px;\r\n      color: #000000;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .post-list .item .post_excerpt {\r\n      font-size: 12px;\r\n      color: #3f3f3f;\r\n      margin: 10px 0px;\r\n      padding: 0px;\r\n      display: block;\r\n      text-decoration: none;\r\n          }\r\n\r\n    .related-post .owl-dots .owl-dot {\r\n          }\r\n\r\n      <\/style>\r\n      <script>\r\n      jQuery(document).ready(function($) {\r\n        $(\".related-post .post-list\").owlCarousel({\r\n          items: 2,\r\n          responsiveClass: true,\r\n          responsive: {\r\n            0: {\r\n              items: 1,\r\n            },\r\n            768: {\r\n              items: 2,\r\n            },\r\n            1200: {\r\n              items: 2,\r\n            }\r\n          },\r\n                      rewind: true,\r\n                                loop: true,\r\n                                center: false,\r\n                                autoplay: true,\r\n            autoplayHoverPause: true,\r\n                                nav: true,\r\n            navSpeed: 1000,\r\n            navText: ['<i class=\"fas fa-chevron-left\"><\/i>', '<i class=\"fas fa-chevron-right\"><\/i>'],\r\n                                dots: false,\r\n            dotsSpeed: 1200,\r\n                                                    rtl: false,\r\n          \r\n        });\r\n      });\r\n    <\/script>\r\n  <\/div>","protected":false},"excerpt":{"rendered":"<p>With Facebook\u2019s Graph API and the creation of the Open Graph protocol, it is now easier then ever before to read and write data from facebook to rails application and back to the \u201csocial graph\u201d. Here\u2019s a few of the possibilities: You could turn your webpage into a fully-featured Facebook-like page, just like if you &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.railscarma.com\/de\/blog\/how-to-build-a-scalable-saas-platform-using-ruby-on-rails\/\"> <span class=\"screen-reader-text\">Wie man eine skalierbare SaaS-Plattform mit Ruby on Rails aufbaut<\/span> Weiterlesen \u00bb<\/a><\/p>","protected":false},"author":1,"featured_media":32189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[385,384],"tags":[484,485,379,486],"class_list":["post-6455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-management","category-technical-articles","tag-application-development","tag-facebook","tag-rails-application","tag-ruby-on-rails-application-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to get user information from Facebook to Rails application? - RailsCarma Blog<\/title>\n<meta name=\"description\" content=\"With Facebook\u2019s Open Graph protocol, it is now easier then ever to read and write data from facebook to rails application and back to the \u201csocial graph\u201d.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get user information from Facebook to Rails application? - RailsCarma Blog\" \/>\n<meta property=\"og:description\" content=\"With Facebook\u2019s Open Graph protocol, it is now easier then ever to read and write data from facebook to rails application and back to the \u201csocial graph\u201d.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung\/\" \/>\n<meta property=\"og:site_name\" content=\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RailsCarma\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-12T01:30:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-07T08:00:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"459\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@railscarma\" \/>\n<meta name=\"twitter:site\" content=\"@railscarma\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21\"},\"headline\":\"How To Get User Information From Facebook To Rails Application?\",\"datePublished\":\"2013-02-12T01:30:04+00:00\",\"dateModified\":\"2021-06-07T08:00:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/\"},\"wordCount\":1230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg\",\"keywords\":[\"application development\",\"facebook\",\"rails application\",\"ruby on rails application development\"],\"articleSection\":[\"Articles on Management\",\"Technical Articles\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/\",\"url\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/\",\"name\":\"How to get user information from Facebook to Rails application? - RailsCarma Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.railscarma.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg\",\"datePublished\":\"2013-02-12T01:30:04+00:00\",\"dateModified\":\"2021-06-07T08:00:44+00:00\",\"description\":\"With Facebook\u2019s Open Graph protocol, it is now easier then ever to read and write data from facebook to rails application and back to the \u201csocial graph\u201d.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg\",\"width\":650,\"height\":459},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.railscarma.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Get User Information From Facebook To Rails Application?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.railscarma.com\/#website\",\"url\":\"https:\/\/www.railscarma.com\/\",\"name\":\"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development\",\"description\":\"RailsCarma is a Ruby on Rails Development Company in Bangalore. We specialize in Offshore Ruby on Rails Development based out in USA and India. Hire experienced Ruby on Rails developers for the ultimate Web Experience.\",\"publisher\":{\"@id\":\"https:\/\/www.railscarma.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.railscarma.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.railscarma.com\/#organization\",\"name\":\"RailsCarma\",\"url\":\"https:\/\/www.railscarma.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"contentUrl\":\"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png\",\"width\":200,\"height\":46,\"caption\":\"RailsCarma\"},\"image\":{\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RailsCarma\/\",\"https:\/\/x.com\/railscarma\",\"https:\/\/www.linkedin.com\/company\/railscarma\/\",\"https:\/\/myspace.com\/railscarma\",\"https:\/\/in.pinterest.com\/railscarma\/\",\"https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wie bekomme ich Benutzerinformationen von Facebook zur Rails-Anwendung? - RailsCarma-Blog","description":"Mit dem Open Graph-Protokoll von Facebook ist es jetzt einfacher als je zuvor, Daten von Facebook in die Rails-Anwendung und zur\u00fcck in den \u201eSocial Graph\u201c zu lesen und zu schreiben.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung\/","og_locale":"de_DE","og_type":"article","og_title":"How to get user information from Facebook to Rails application? - RailsCarma Blog","og_description":"With Facebook\u2019s Open Graph protocol, it is now easier then ever to read and write data from facebook to rails application and back to the \u201csocial graph\u201d.","og_url":"https:\/\/www.railscarma.com\/de\/blog\/fachartikel\/so-erhalten-sie-benutzerinformationen-von-facebook-zur-rails-anwendung\/","og_site_name":"RailsCarma - Ruby on Rails Development Company specializing in Offshore Development","article_publisher":"https:\/\/www.facebook.com\/RailsCarma\/","article_published_time":"2013-02-12T01:30:04+00:00","article_modified_time":"2021-06-07T08:00:44+00:00","og_image":[{"width":650,"height":459,"url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@railscarma","twitter_site":"@railscarma","twitter_misc":{"Verfasst von":"admin","Gesch\u00e4tzte Lesezeit":"6\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#article","isPartOf":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/"},"author":{"name":"admin","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21"},"headline":"How To Get User Information From Facebook To Rails Application?","datePublished":"2013-02-12T01:30:04+00:00","dateModified":"2021-06-07T08:00:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/"},"wordCount":1230,"commentCount":0,"publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"image":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg","keywords":["application development","facebook","rails application","ruby on rails application development"],"articleSection":["Articles on Management","Technical Articles"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/","url":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/","name":"Wie bekomme ich Benutzerinformationen von Facebook zur Rails-Anwendung? - RailsCarma-Blog","isPartOf":{"@id":"https:\/\/www.railscarma.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage"},"image":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage"},"thumbnailUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg","datePublished":"2013-02-12T01:30:04+00:00","dateModified":"2021-06-07T08:00:44+00:00","description":"Mit dem Open Graph-Protokoll von Facebook ist es jetzt einfacher als je zuvor, Daten von Facebook in die Rails-Anwendung und zur\u00fcck in den \u201eSocial Graph\u201c zu lesen und zu schreiben.","breadcrumb":{"@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#primaryimage","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2013\/02\/16562_1_other_wallpapers_hal_9000.jpeg","width":650,"height":459},{"@type":"BreadcrumbList","@id":"https:\/\/www.railscarma.com\/es\/blog\/technical-articles\/como-obtener-informacion-del-usuario-de-facebook-a-la-aplicacion-rails\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.railscarma.com\/"},{"@type":"ListItem","position":2,"name":"How To Get User Information From Facebook To Rails Application?"}]},{"@type":"WebSite","@id":"https:\/\/www.railscarma.com\/#website","url":"https:\/\/www.railscarma.com\/","name":"RailsCarma \u2013 Ruby on Rails-Entwicklungsunternehmen, spezialisiert auf Offshore-Entwicklung","description":"RailsCarma ist ein Ruby on Rails-Entwicklungsunternehmen in Bangalore. Wir sind auf die Offshore-Ruby-on-Rails-Entwicklung mit Sitz in den USA und Indien spezialisiert. Stellen Sie erfahrene Ruby on Rails-Entwickler f\u00fcr das ultimative Web-Erlebnis ein.","publisher":{"@id":"https:\/\/www.railscarma.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.railscarma.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.railscarma.com\/#organization","name":"SchienenCarma","url":"https:\/\/www.railscarma.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","contentUrl":"https:\/\/www.railscarma.com\/wp-content\/uploads\/2020\/08\/railscarma_logo.png","width":200,"height":46,"caption":"RailsCarma"},"image":{"@id":"https:\/\/www.railscarma.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RailsCarma\/","https:\/\/x.com\/railscarma","https:\/\/www.linkedin.com\/company\/railscarma\/","https:\/\/myspace.com\/railscarma","https:\/\/in.pinterest.com\/railscarma\/","https:\/\/www.youtube.com\/channel\/UCx3Wil-aAnDARuatTEyMdpg"]},{"@type":"Person","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/5f2228a2dec7549056e709de6eb85d21","name":"Administrator","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.railscarma.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/308867ca6c81f3aba146080c601000087180326f752c4116849ea9f514c6a4fa?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.railscarma.com\/hire-ruby-on-rails-developer\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/posts\/6455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/comments?post=6455"}],"version-history":[{"count":0,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/posts\/6455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/media\/32189"}],"wp:attachment":[{"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/media?parent=6455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/categories?post=6455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.railscarma.com\/de\/wp-json\/wp\/v2\/tags?post=6455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}