A3MJ Index du Forum A3MJ
Forum du club A3MJ
 
 FAQFAQ   RechercherRechercher   MembresMembres   GroupesGroupes   S’enregistrerS’enregistrer
 ProfilProfil   Se connecter pour vérifier ses messages privésSe connecter pour vérifier ses messages privés   ConnexionConnexion

Coding Facebook Apps

 
Poster un nouveau sujet   Répondre au sujet    A3MJ Index du Forum -> Vos réalisations -> Véhicules militaires avant 1945
Sujet précédent :: Sujet suivant  
Auteur Message
lavrquir


Hors ligne

Inscrit le: 07 Avr 2016
Messages: 122
Localisation: Lyon

MessagePosté le: Mer 10 Jan - 10:30 (2018)    Sujet du message: Coding Facebook Apps Répondre en citant




Coding Facebook Apps
> DOWNLOAD










The first thing to do is some config on Facebook:. I've also chosen a particular way of implementing it (using a form, passing along the accesstoken, sending the Graph API request server-side), but there are lots of other ways you could do it - in particular, you could do more work client-side using the Facebook Javascript SDK. Let's start by opening up a Bash console on the Consoles tab, and starting a new app inside our django project:. Let's update our home page template so that it contains the quote of the day, and a button they can use to update their status. } } In MIDDLEWARECLASSES, disable the CsrfViewMiddleware, and add the FacebookMiddleware: MIDDLEWARECLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', #'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'djangofacebook.middleware.FacebookMiddleware', ) In INSTALLEDAPPS, we add djangofacebook and our own app, myapp: INSTALLEDAPPS = ( 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'djangofacebook', 'mysite.myapp', ) At the bottom of the settings.py file, we add the App ID and Secret Key for our Facebook app, which we noted down earlier, and we choose the default permissions we want for our app - in this case, we need publishstream permissions. Share what's new in your life on your Timeline. Code Generator is a security feature for your Facebook app used with two-factor authentication. Skip Navigation. Not used with sqlite3. Envato Tuts+About Envato Tuts+Terms of UseAdvertiseJoin our CommunityTeach at Envato Tuts+Translate for Envato Tuts+ForumsHelpFAQHelp Center25,190Tutorials1,090Courses19,230TranslationsEnvato.comOur productsCareers 2018 Envato Pty Ltd. Let's code our web app in two steps. See photos and updates from friends in News Feed. Basic config - starting a Django project, adding in django-facebook. Want to work with us? Join the team, we're hiring! Here are some of our current open positions: Solutions Engineer, BeneluxSoftware Engineer, Product (Full Stack)Software Engineer, Search RankingSoftware Engineer, InfrastructureMobile Software Developer, AnalyticsConnectFollow us on TwitterKeep UpdatedStay up-to-date via RSS with the latest open source project releases from Facebook, news from our Engineering teams, and upcoming events.Subscribe. iOSAllFrameworkCompilationDevelopment ToolsLanguage ToolsDesign ToolsSource ControlReact NativemakeitopenComponentKitShimmer for iOSpopFBMemoryProfilerFBRetainCycleDetectorbuckFBAllocationTrackerremodelInfertweaksorigamichiselbolts-iosxctoolkvocontrollerAsyncDisplayKitfishhookfacebook-ios-sdkatoslPathPickerFBSimulatorControlBolts-SwiftWebDriverAgentxcbuild. There is no why.", "The universe is a big place, perhaps the biggest.", "Tiger got to hunt, bird got to fly; Man got to sit and wonder, 'Why, why, why?' Tiger got to sleep, bird got to land; Man got to tell himself he understand.", "If people think nature is their friend, then they sure don't need an enemy.", "We could have saved the Earth but we were too damned cheap.", "That is my principal objection to life, I think: It's too easy, when alive, to make perfectly horrible mistakes.", "All persons, living and dead, are purely coincidental.", "So it goes.", ] canvasonly def home(request): me = request.facebook.graph.getobject('me') accesstoken = request.facebook.graph.accesstoken quote = random.choice(QUOTES) return render(request, 'home.html', {'me': me, 'accesstoken': accesstoken, 'quote': quote}) def updatestatus(request): quote = request.POST['quote'] accesstoken = request.POST['accesstoken'] graph = facebook.GraphAPI(accesstoken) graph.putobject("me", "feed", message=quote) return render(request, 'alldone.html') . OK, marketing over. Want to work with us? Join the team, we're hiring! Here are some of our current open positions: Silicon Technical Program Manager (Oculus)Software Engineer, iOSResearch Manager (Silicon & Architecture Research)Server Software Developer (WhatsApp)Mobile Software Developer, AnalyticsConnectFollow us on TwitterKeep UpdatedStay up-to-date via RSS with the latest open source project releases from Facebook, news from our Engineering teams, and upcoming events.Subscribe. 'PORT': '', # Set to empty string for default. At this point, you should be able to log into your Facebook app, find it asks you for some permissions, and see it greets you by name!. Find more of what you're looking for with Facebook Search. .. Go and visit your app's facebook URL, at . We'll modify our home view slightly, and add the updatestatus view too: import facebook import random from django.shortcuts import render from djangofacebook.decorators import canvasonly QUOTES = [ "Being a Humanist means trying to behave decently without expectation of rewards or punishment after you are dead.", "Here we are, trapped in the amber of the moment. And don't forget to sign up for our weekly newsletter to get the latest articles, videos, and blogs delivered directly to your in-box.. Our home view does two new things: it picks a random quote to show the user, and it extracts the user's access token, to pass it through to the form. Let's leave home.html open in a browser tab, and open a new tab to edit the next file. From your Facebook app, tap Scroll down and tap Code GeneratorUse the code to log into Facebook. Hit submit, and you'll find it gets posted as your status on Facebook. Keep the console open in one tab, and open the Dashboard up in another (eg, by Ctrl+clicking the PythonAnywhere logo at the top of the page) Then go to Files. In the meantime, find out more here:. Note: Code Generator is only available from the Facebook app for Android and iOS. Unlimited DownloadsFrom $29/monthGet access to over 400,000 creative assets on Envato Elements. In mysite/urls.py, and set one line in the urlpatterns: urlpatterns = patterns('', url(r'^$', 'mysite.myapp.views.home', name="home"), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), ) Now, hit Reload Web App back on the Web tab of PythonAnywhere -- again, opening this up in another tab is useful 5a02188284
how to take off likes and interests on facebookpicasa facebook plugin downloadremove facebook app nexus onekumpulan kode emoticon facebook chat terbaru dan lengkap 2012download micromax facebook apphow to display chat on facebookfacebook advertising error code 1how to create an album on facebook mobile appcomo descargar el nuevo facebook con chat para blackberryawesome quotes for facebook yahoo answers


Revenir en haut
Publicité






MessagePosté le: Mer 10 Jan - 10:30 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    A3MJ Index du Forum -> Vos réalisations -> Véhicules militaires avant 1945 Toutes les heures sont au format GMT + 2 Heures
Page 1 sur 1

 
Sauter vers:  

Index | Panneau d’administration | créer forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001 phpBB Group
Traduction par : phpBB-fr.com