Advertisement
Guest User

Application Facebook On Mobile

a guest
Jan 9th, 2018
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. Application Facebook On Mobile
  5. http://urlin.us/c076a
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. Advertisement . Besides these basic social characteristics, Facebook also includes pages for popular actors, bands, movies, TV shows, Internet websites, sports, activities and pretty much anything you can think of, which you can join as a fan. Summary Congratulations! You have registered an application with Facebook. HRESULT SHCameraCapture(PSHCAMERACAPTURE pshcc) { typedef HRESULT (*fnSHCameraCapture)(PSHCAMERACAPTURE pshcc); HRESULT hr = SOK; HINSTANCE hAygShell = LoadLibrary(TEXT("aygshell.dll")); fnSHCameraCapture funcSHCameraCapture = NULL; if (!hAygShell) { hr = HRESULTFROMWIN32(GetLastError()); goto FuncExit; } funcSHCameraCapture = (fnSHCameraCapture)GetProcAddress( hAygShell, TEXT("SHCameraCapture") ); if (!funcSHCameraCapture) { hr = HRESULTFROMWIN32(GetLastError()); goto FuncExit; } // call the API now hr = funcSHCameraCapture(pshcc); FuncExit: if (hAygShell) { FreeLibrary(hAygShell); hAygShell = NULL; } return hr; } void CapturePhoto() { SHCAMERACAPTURE sh = {0}; sh.cbSize = sizeof(SHCAMERACAPTURE); sh.hwndOwner = mhWnd; sh.Mode = CAMERACAPTUREMODESTILL; sh.StillQuality = CAMERACAPTURESTILLQUALITYDEFAULT; if (SOK == UTILS::SHCameraCapture(&sh)) { // sh.szFile has the file name of the photo } } void CaptureVideo() { SHCAMERACAPTURE sh = {0}; sh.cbSize = sizeof(SHCAMERACAPTURE); sh.hwndOwner = mhWnd; sh.Mode = CAMERACAPTUREMODEVIDEOWITHAUDIO; sh.VideoTypes = CAMERACAPTUREVIDEOTYPEALL; if (SOK == UTILS::SHCameraCapture(&sh)) { // sh.szFile has the file name of the video } } Photos are a big part of what makes Facebook fun. Windows Mobile makes this quite simple (using RegisterWindowMessage): after we received the message, we queried its parameters to determine how far and how fast to scroll our list before animating the list ourselves. Its precisely this amount of personal data that has caused Facebook some trouble over the years, with users complaining about privacy. The biggest task here was to enable gesture support for Windows Mobile 6.5. You should see something similar to this on the console from which you launched the app: APPLICATION DETAILS ========================= ID: 137465826441449 Name: GSGHello Namespace: gsghello Contact Email: [emailprotected] Website URL: null Of course, the exact data varies based on the answers you gave to Facebook when you registered your application. The app domain is also optional. The goal of this process was to clearly set out what the experience should be like; discovering what we could translate into actual code on Windows phones would come later. Conclusion In this case study we have looked at how Matchbox Mobile approached the task of creating a Windows Mobile 6 software client for Facebook. The main thing to note from the application settings page is the App ID and App Secret near the top. Instructions for getting and running the utility are at the end of this guide. Using CryptoAPI, we let the system do the heavy lifting. At each stage, we revisited the requirements and reassessed the reality of the experience against what was possible and what was desirable. 404 Error .. Advertisement . We felt this was a good opportunity for us to differentiate the Windows Mobile application. For each platform you are targeting add the WTL include path (for example, C:WTL80include) to the list of include folders. This site uses cookies for analytics, personalized content and ads. These values are your applications credentials to Facebook. Using What Windows Mobile Gives You The preceding example is one of many instances in which the operating system helped us use well-documented APIs to achieve our aims cleanly. We chose not to do this because having a single installation CAB was a high-priority requirement for distribution. Figure 1 Pencil sketch of inbox screen The pencil and paper sketch aims to capture key concepts like layout, logic, content density, and navigation options. The Phonebook Tab The screen shot in Figure 4 shows the Phonebook tab, a UI feature that sets this Windows phone implementation apart from other Facebook clients and the Web site itself: Figure 5 Phonebook tab art The Phonebook tab is an example of our drive to differentiate the Windows phone while using the strengths of the operating system (see the section Using What Windows Mobile Gives You for more details). We describe useful strategies for Windows Mobile development based upon our experiences developing the Facebook client. Matchbox Mobile is a software developer and consultancy that specializes in mobile and embedded devices. We rejected this approach for two reasons: Using this approach would have increased the complexity of the solution and made the code harder to maintain. Were sorry. We wanted to take advantage of the new Windows Mobile 6.5 features without demoting the experience for Windows Mobile 6 users. Microsoft provides (but does not officially support) WTL as an open source project. Optionally, you can have Facebook automatically arrange hosting for your application at Heroku. In Spring Boot they are the spring.social.facebook.appId and spring.social.facebook.appSecret respectively. MSDN Library Design Tools Development Tools and Languages Mobile and Embedded Development .NET Development Office development Online Services Open Specifications patterns & practices Servers and Enterprise Development Speech Technologies Web Development Windows Desktop App Development TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained 5a02188284
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement